Sha256: d3258331ce3d8f5b87bb4049c9cc72efccc90186457716d70546f2e9b4ab6f66

Contents?: true

Size: 693 Bytes

Versions: 31

Compression:

Stored size: 693 Bytes

Contents

#ifndef Rice__detail__traits__hpp_
#define Rice__detail__traits__hpp_

namespace Rice
{
namespace detail
{

/**
 * Remove const from a type
 */
template<typename T>
struct remove_const { typedef T Type; };

template<typename T>
struct remove_const<const T> { typedef T Type; };

/**
 * Remove a reference from a type
 */
template<typename T>
struct remove_ref { typedef T Type; };

template<typename T>
struct remove_ref<T &> { typedef T Type; };

/**
 * Do both of the above in one easy step
 */
template<typename T>
struct sanitize
{
  typedef T Type;
  //typedef typename remove_const< 
    //typename remove_ref<T>::Type 
    //>::Type Type;
};

}
}


#endif // Rice__detail__traits__hpp_

Version data entries

31 entries across 31 versions & 5 rubygems

Version Path
rice2-2.2.1 rice/detail/traits.hpp
rice2-2.2.0 rice/detail/traits.hpp
rice-2.2.0 rice/detail/traits.hpp
rice-2.1.3 rice/detail/traits.hpp
rice-2.1.2 rice/detail/traits.hpp
rice-2.1.1 rice/detail/traits.hpp
rice-2.1.0 rice/detail/traits.hpp
rice-2.0.0 rice/detail/traits.hpp
rice-1.7.0 rice/detail/traits.hpp
rice-1.6.3 rice/detail/traits.hpp
rice-1.6.2 rice/detail/traits.hpp
rice-1.6.1 rice/detail/traits.hpp
rice-1.6.0 rice/detail/traits.hpp
rice-1.6.0.pre rice/detail/traits.hpp
rice-1.5.3 rice/detail/traits.hpp
rice-1.5.2 rice/detail/traits.hpp
keyme-rice-1.5.1.keyme1 rice/detail/traits.hpp
keyme-rice-1.5.1.keyme rice/detail/traits.hpp
rice-1.5.1 rice/detail/traits.hpp
rice-1.5.0 rice/detail/traits.hpp