Boost C++ Libraries Boost.Bimap Home Libraries People FAQ More

PrevUpHomeNext

list_of Struct Template Reference

Set Type Specification. More...

#include <list_of.hpp>

Inheritance diagram for list_of:

Inheritance graph
Collaboration diagram for list_of:

Collaboration graph
List of all members.

Public Types

typedef mpl::bool_< true > mutable_key
typedef Type value_type
 Type of the object that will be stored in the list.

Detailed Description

template<class Type>
struct boost::bimaps::list_of< Type >

Set Type Specification.

This struct is used to specify a set specification. It is not a container, it is just a metaprogramming facility to express the type of a set. Generally, this specification will be used in other place to create a container. It has the same syntax that an std::list instantiation, except that the allocator cannot be specified. The rationale behind this difference is that the allocator is not part of the set type specification, rather it is a container configuration parameter.

using namespace support;

BOOST_STATIC_ASSERT( is_set_type_of< list_of<Type> >::value );

BOOST_STATIC_ASSERT
(
     is_same
     <
        list_of<Type>::index_bind
        <
            KeyExtractor,
            Tag

        >::type,

        sequenced< tag<Tag>, KeyExtractor >

    >::value
);

typedef bimap
<
    list_of<Type>, RightKeyType

> bimap_with_left_type_as_list;

BOOST_STATIC_ASSERT
(
    is_same
    <
        list_of<Type>::map_view_bind
        <
            member_at::left,
            bimap_with_left_type_as_list

        >::type,
        list_map_view< member_at::left, bimap_with_left_type_as_list >

    >::value
);

See also list_of_relation.

Definition at line 100 of file list_of.hpp.


The documentation for this struct was generated from the following file:
Copyright 2006 Matias Capeletto

PrevUpHomeNext