38 #ifndef BLOCXX_LIST_HPP_INCLUDE_GUARD_
39 #define BLOCXX_LIST_HPP_INCLUDE_GUARD_
40 #include "blocxx/BLOCXX_config.h"
44 namespace BLOCXX_NAMESPACE
48 template<
class T>
class List;
54 inline bool operator<(const List<T>& x,
const List<T>& y);
60 template<
class T>
class List
63 typedef std::list<T>
L;
94 template<
class InputIterator>
95 List(InputIterator first, InputIterator last)
236 return m_impl->max_size();
284 return m_impl->insert(position, x);
295 return m_impl->insert(position);
304 template<
class InputIterator>
307 m_impl->insert(position, first, last);
320 m_impl->insert(pos, n, x);
333 m_impl->insert(pos, n, x);
346 m_impl->insert(pos, n, x);
375 return m_impl->erase(position);
388 return m_impl->erase(first, last);
398 m_impl->resize(new_size, x);
430 for( ; first !=
end(); ++first)
460 for( ; first !=
end(); ++first)
491 return find(x, first, last) !=
end();
555 void remove(
const T& value)
603 template<
class BinaryPredicate>
void unique(BinaryPredicate bp)
648 inline bool operator<(const List<T>& x,
const List<T>& y)
650 return *x.
m_impl < *y.m_impl;
660 return new std::list<T>(*obj);