reversible_ptr_container: This class presents the general interface of all pointer containers.
namespace boost { template < class T, class CloneAllocator, class VoidPtrContainer > class reversible_ptr_container { public: // typedefs typedef T* value_type; typedef T& reference; typedef const T& const_reference; typedef implementation defined iterator; typedef implementation defined const_iterator; typedef typename VoidPtrContainer::differnce_type difference_type; typedef typename VoidPtrContainer::size_type size_type; typedef typename VoidPtrContainer::allocator_type allocator_type; typedef implementation defined reverse_iterator; typedef implementation defined const_reverse_iterator; typedef implementation defined auto_type; public: // construct/copy/destroy reversible_ptr_container(); reversible_ptr_container( auto_ptr<reversible_ptr_container> r ); template< class InputIterator > reversible_ptr_container( InputIterator first, InputIterator last ); ~reversible_ptr_container(); void operator=( std::auto_ptr<reversible_ptr_container> r ) allocator_type get_allocator() const; public: // iterators iterator begin(); const_iterator begin() const; iterator end(); const_iterator end() const; reverse_iterator rbegin(); const_reverse_iterator rbegin() const; reverse_iterator rend(); const_reverse_iterator rend() const; public: // capacity size_type size() const; size_type max_size() const; bool empty() const; public: // modifiers void swap( reversible_ptr_container& r ); void clear(): public: // pointer container requirements auto_type replace( iterator position, T* x ); template< class U > auto_type replace( iterator position, std::auto_ptr<U> x ); std::auto_ptr<reversible_ptr_container> clone() const; std::auto_ptr<reversible_ptr_container> release(); auto_type release( iterator position ); public: // serialization template< class Archive > void save( Archive& ar, const unsigned version ) const; template< class Archive > void load( Archive& ar, const unsigned version ); }; // class 'reversible_ptr_container' // comparison template < class T, class CA, class VPC > bool operator==( const reversible_ptr_container<T,CA,VPC>& x, const reversible_ptr_container<T,CA,VPC>& y); template < class T, class CA, class VPC > bool operator<( const reversible_ptr_container<T,CA,VPC>& x, const reversible_ptr_container<T,CA,VPC>& y); template < class T, class CA, class VPC > bool operator!=( const reversible_ptr_container<T,CA,VPC>& x, const reversible_ptr_container<T,CA,VPC>& y); template < class T, class CA, class VPC > bool operator>( const reversible_ptr_container<T,CA,VPC>& x, const reversible_ptr_container<T,CA,VPC>& y); template < class T, class CA, class VPC > bool operator>=( const reversible_ptr_container<T,CA,VPC>& x, const reversible_ptr_container<T,CA,VPC>& y); template < class T, class CA, class VPC > bool operator<=( const reversible_ptr_container<T,CA,VPC>& x, const reversible_ptr_container<T,CA,VPC>& y); template< class T, class CA, class VPC > void swap( reversible_ptr_container<T,CA,VPC>& x, reversible_ptr_container<T,CA,VPC>& y ); // clonability template< class T, class CA, class VPC > reversible_ptr_container<T,CA,VPC>* new_clone( const reversible_ptr_container<T,CA,VPC>& r ); // null predicate template< class Iterator > bool is_null( Iterator i ); } // namespace 'boost'
None
For additional information or queries on this page send feedback.
© 2008 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user. |
Legal Disclaimer Please note, that by using some of the links in this document you will leave the Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user. website and the site you enter is not operated by Nokia. If you choose to access such sites, you should take precautions for security or content. By using the site, you shall review and agree to the site's rules of use before using the site. You agree and acknowledge that Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user. has no control over the service and will not assume any liability or responsibility for the availability of the site, nor for any aspects of the service.