1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

Addition of 'deleter' function.

llvm-svn: 121
This commit is contained in:
Chris Lattner 2001-07-02 01:09:41 +00:00
parent ec700533c1
commit be2224f993

View File

@ -43,6 +43,18 @@ struct bitwise_or : public binary_function<Ty, Ty, bool> {
};
// deleter - Very very very simple method that is used to invoke operator
// delete on something. It is used like this:
//
// for_each(V.begin(), B.end(), deleter<cfg::Interval>);
//
template <class T>
static inline void deleter(T *Ptr) {
delete Ptr;
}
//===----------------------------------------------------------------------===//
// Extra additions to <iterator>
//===----------------------------------------------------------------------===//