Helper struct to clone the constness of one type to another. More...
#include <const_clone.hpp>
Public Types | |
typedef D | type |
The destination type, possibly const qualified. More... | |
typedef D & | reference |
A reference to the destination type, possibly const qualified. More... | |
typedef D * | pointer |
A pointer to the destination type, possibly const qualified. More... | |
Helper struct to clone the constness of one type to another.
It's function is similar to the tconst_duplicator, but a bit more flexible.
*this
in a const member function is not a const object, use this
, which is a pointer to a const object.D | The destination type, it should have no cv-qualifier and not be a pointer or reference. |
S | The source type, this type may be a pointer or reference and obviously is allowed to have a cv-qualifier, although volatile has no effect. |
E | The enable parameter for boost::enable_if. |
Definition at line 47 of file const_clone.hpp.
typedef D* utils::tconst_clone< D, S, E >::pointer |
A pointer to the destination type, possibly const qualified.
Definition at line 56 of file const_clone.hpp.
typedef D& utils::tconst_clone< D, S, E >::reference |
A reference to the destination type, possibly const qualified.
Definition at line 53 of file const_clone.hpp.
typedef D utils::tconst_clone< D, S, E >::type |
The destination type, possibly const qualified.
Definition at line 50 of file const_clone.hpp.