Name

ptr_multimap_adapter : This class is used to build custom pointer containers with an underlying multimap-like container. The interface of the class is an extension of the interface from associative_ptr_container.


Synopsis

namespace boost
{
    template
    < 
        T,
        class VoidPtrMultiMap,
        class CloneAllocator = heap_clone_allocator 
    >
    class ptr_multimap_adapter 
    {
    public: // typedefs
        typedef VoidPtrMap::key_type key_type;
        typedef T*                   mapped_type;
        typedef T&                   mapped_reference;
        typedef const T&             const_mapped_reference;
        typedef ...                  value_type;
        typedef ...                  reference;
        typedef ...                  const_reference;
        typedef ...                  pointer;
        typedef ...                  const_pointer;  
        
    public: // modifiers         
        iterator  insert( key_type& k, T* x ); 
        template< class U >
        iterator  insert( const key_type&, std::auto_ptr<U> x );                        

    public: // pointer container requirements
        void      transfer( iterator object, ptr_multimap_adapter& from );
        size_type transfer( iterator first, iterator last, ptr_multimap_adapter& from );
        template< class Range >
        size_type transfer( const Range& r, ptr_multimap_adapter& from );
        void      transfer( ptr_multimap_adapter& from );

    }; //  class 'ptr_multimap_adapter'

} // namespace 'boost'  

Detailed Description

Click here for more details.


Limitation

None


Feedback

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.

Top

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.