STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | List of all members
__gnu_pbds::container_traits< Cntnr > Struct Template Reference

Container traits. More...

#include <ext/pb_ds/tag_and_trait.hpp>

Inheritance diagram for __gnu_pbds::container_traits< Cntnr >:
__gnu_pbds::container_traits_base< Cntnr::container_category >

Public Types

enum  { order_preserving = base_type::order_preserving, erase_can_throw = base_type::erase_can_throw, split_join_can_throw = base_type::split_join_can_throw, reverse_iteration = base_type::reverse_iteration }
 
typedef Cntnr container_type
 
typedef Cntnr::container_category container_category
 
typedef container_traits_base
< container_category
base_type
 
typedef
base_type::invalidation_guarantee 
invalidation_guarantee
 

Detailed Description

template<typename Cntnr>
struct __gnu_pbds::container_traits< Cntnr >

Container traits.

Member Typedef Documentation

template<typename Cntnr >
typedef Cntnr::container_category __gnu_pbds::container_traits< Cntnr >::container_category
template<typename Cntnr >
typedef Cntnr __gnu_pbds::container_traits< Cntnr >::container_type
template<typename Cntnr >
typedef base_type::invalidation_guarantee __gnu_pbds::container_traits< Cntnr >::invalidation_guarantee

Member Enumeration Documentation

template<typename Cntnr >
anonymous enum
Enumerator
order_preserving 

True only if Cntnr objects guarantee storing keys by order.

erase_can_throw 

True only if erasing a key can throw.

split_join_can_throw 

True only if split or join operations can throw.

reverse_iteration 

True only reverse iterators are supported.

427  {
429  order_preserving = base_type::order_preserving,
430 
432  erase_can_throw = base_type::erase_can_throw,
433 
435  split_join_can_throw = base_type::split_join_can_throw,
436 
438  reverse_iteration = base_type::reverse_iteration
439  };
True only if split or join operations can throw.
Definition: tag_and_trait.hpp:435
True only if Cntnr objects guarantee storing keys by order.
Definition: tag_and_trait.hpp:429
True only if erasing a key can throw.
Definition: tag_and_trait.hpp:432
True only reverse iterators are supported.
Definition: tag_and_trait.hpp:438

The documentation for this struct was generated from the following file: