cv-Qualifier Functions
[STLSoft]


Detailed Description

These functions assist in the manipulation of cv-qualifiers.


Functions

template<typename T>
T & remove_const (T const &t)
 Remove const-qualifier from an instance.
template<typename T>
T const & apply_const (T &t)
 Adds const-qualifier to an instance.
template<typename T>
T const * address (T const &t)
 Takes the address of a variable.


Function Documentation

T const* stlsoft::address ( T const &  t  )  [inline]

Takes the address of a variable.

Warning:
This function is used to take the address of a variable, possibly a temporary, and allows the code to skip the reasonable reservations of compilers to not want to compile code that uses the address of temporaries. As such, the advice is: Use With Care!

T const& stlsoft::apply_const ( T &  t  )  [inline]

Adds const-qualifier to an instance.

T& stlsoft::remove_const ( T const &  t  )  [inline]

Remove const-qualifier from an instance.

Warning:
Using this function can result in undefined behaviour. As such, the advice is: Use With Care!


Generated on Thu Jun 10 08:58:21 2010 for STLSoft by  doxygen 1.5.6