Hi all,
I'm very picky about names and recently I had to add a meta programming class to have one function which accept char, int, float, double, T& and T*.
if it's only reference or pointer you would call it TConstPtrOrRef like that:
/*!
\brief
Constant pointer or reference of T.
*/
template< class T >
struct TConstPtrOrRef
{
typedef const T& Type; //!< Type.
};
/*!
\brief
Constant pointer or reference of T.
*/
template< class T >
struct TConstPtrOrRef< T* >
{
typedef const T* Type; //!< Type.
};
But if you add char, int, float and double then it's not only ref or ptr.
Any opinion of a good name ?
Thank you