stl コンテナのallocatorを取り替えたものを提供する.
選択肢
- std::allocator を使って tcmalloc と組合せる (default)
- intel thread building blocks の scalable_allocator を使う
- boost の pool_allocator を使う
template<class InputIterator , class OutputIterator , class Predicate >
OutputIterator osl::stl::copy_if |
( |
InputIterator |
first, |
|
|
InputIterator |
last, |
|
|
OutputIterator |
result, |
|
|
Predicate |
predicate |
|
) |
| |
|
inline |
Copy the elements of a range that satisfy a predicate.
The current STL lacks this copy_if algorithm. This implementation comes from a book: Effective STL, Scott Meyers, Addison-Wesley (Item 36).
Definition at line 14 of file copy_if.h.
References result.