0.12.0
Freundlich's C++ toolkit
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Modules | Functions
fcppt.container
fcppt

Description

Various containers complementing the standard library and boost.

Classes

class  fcppt::container::exception
 An exception thrown by some container functions. More...
 
class  fcppt::container::index_map< T, A >
 
class  fcppt::container::insert_failed
 
struct  fcppt::container::is_raw_vector< T >
 Metafunction to test if a container is a fcppt::container::raw_vector. More...
 
struct  fcppt::container::is_std_vector< T >
 Metafunction to test if a container is a std::vector More...
 
class  fcppt::container::map< MapType >
 FIXME. More...
 
class  fcppt::container::not_found
 FIXME. More...
 
class  fcppt::container::out_of_range
 An exception thrown by some containers if an index is out of bounds. More...
 

Modules

 fcppt.container.array
 An implementation of std::array (see here for a reference)
 
 fcppt.container.bitfield
 A wrapper around a bitfield using an enum.
 
 fcppt.container.grid
 A simple n-dimensional array.
 
 fcppt.container.ptr
 Helper functions and classes for boost.ptr_container.
 
 fcppt.container.raw_vector
 A special vector class for POD types.
 
 fcppt.container.tree
 A tree data structure.
 

Functions

template<typename Container >
Container::pointer fcppt::container::data (Container &_container)
 Returns a pointer the beginning of a random access container.
 
template<typename Container >
Container::const_pointer fcppt::container::data (Container const &_container)
 Returns a const_pointer the beginning of a random access container.
 
template<typename Container >
Container::pointer fcppt::container::data_end (Container &_container)
 Returns a pointer one past the end of a random access container.
 
template<typename Container >
Container::const_pointer fcppt::container::data_end (Container const &_container)
 Returns a const_pointer one past the end of a random access container.
 

Function Documentation

template<typename Container >
Container::pointer fcppt::container::data ( Container &  _container)

Returns a pointer the beginning of a random access container.

Returns a pointer the beginning of _container, or the null pointer if _container is empty.

Parameters
_containerThe container to return the pointer for
template<typename Container >
Container::const_pointer fcppt::container::data ( Container const &  _container)

Returns a const_pointer the beginning of a random access container.

Returns a const_pointer the beginning of _container, or the null pointer if _container is empty.

Parameters
_containerThe container to return the const_pointer for
template<typename Container >
Container::pointer fcppt::container::data_end ( Container &  _container)

Returns a pointer one past the end of a random access container.

Returns a pointer one past the end of _container, or the null pointer if _container is empty.

Parameters
_containerThe container to return the pointer for
template<typename Container >
Container::const_pointer fcppt::container::data_end ( Container const &  _container)

Returns a const_pointer one past the end of a random access container.

Returns a const_pointer one past the end of _container, or the null pointer if _container is empty.

Parameters
_containerThe container to return the const_pointer for