![]() |
Home | Libraries | People | FAQ | More |
boost::type_erasure::any<Concept, T &>
// In header: <boost/type_erasure/any.hpp> template<typename Concept, typename T> class any<, > { public: // construct/copy/destruct template<typename U> (); template<typename U, typename Map> (, static_binding< ); (); (); template<typename Concept2, typename Tag2> (); template<typename Concept2, typename Tag2> (); template<typename Concept2, typename Tag2, typename Map> (, static_binding< ); template<typename Concept2, typename Tag2, typename Map> (, static_binding< ); template<typename Concept2, typename Tag2> (, binding< ); template<typename Concept2, typename Tag2> (, binding< ); template<typename U> (); ~(); };
any
public
construct/copy/destructtemplate<typename U> ( arg);
Constructs an any from a reference.
Parameters: |
|
||
Requires: |
|
||
Requires: |
|
||
Throws: |
Nothing. |
template<typename U, typename Map> ( arg, static_binding< binding);
Constructs an any from a reference.
Parameters: |
|
||||
Requires: |
|
||||
Requires: |
|
||||
Throws: |
Nothing. |
( other);
Constructs an any from another reference.
Parameters: |
|
||
Throws: |
Nothing. |
( other);
Constructs an any from another any.
Parameters: |
|
||
Throws: |
Nothing. |
template<typename Concept2, typename Tag2> ( other);
Constructs an any from another reference.
Parameters: |
|
||
Requires: |
|
||
Requires: |
After substituting |
||
Throws: |
std::bad_alloc |
template<typename Concept2, typename Tag2> ( other);
Constructs an any from another any.
Parameters: |
|
||
Requires: |
|
||
Requires: |
After substituting |
||
Throws: |
std::bad_alloc |
template<typename Concept2, typename Tag2, typename Map> ( other, static_binding< binding);
Constructs an any from another reference.
Parameters: |
|
||||
Requires: |
|
||||
Requires: |
After substituting placeholders according to |
||||
Throws: |
std::bad_alloc |
template<typename Concept2, typename Tag2, typename Map> ( other, static_binding< binding);
Constructs an any from another any.
Parameters: |
|
||||
Requires: |
|
||||
Requires: |
After substituting placeholders according to |
||||
Throws: |
std::bad_alloc |
template<typename Concept2, typename Tag2> ( other, binding< binding);
Constructs an any from another reference.
Parameters: |
|
||||
Requires: |
The type stored in |
||||
Postconditions: |
binding_of(*this) == |
||||
Throws: |
Nothing. |
template<typename Concept2, typename Tag2> ( other, binding< binding);
Constructs an any from another any.
Parameters: |
|
||||
Requires: |
The type stored in |
||||
Postconditions: |
binding_of(*this) == |
||||
Throws: |
Nothing. |
template<typename U> ( other);
Assigns to an any.
If an appropriate overload of assignable is not available and relaxed is in Concept, falls back on constructing from other.
Throws: |
Whatever the assignment operator of the contained type throws. When falling back on construction, can only throw std::bad_alloc if U is an any that uses a different Concept. In this case assignment provides the strong exception guarantee. When calling the assignment operator of the contained type, the exception guarantee is whatever the contained type provides. |
~();
Requires: |
|