Util--  1.1
arg_traits.hh
Go to the documentation of this file.
1 /* -*- C++ -*-
2  * $Id: arg_traits.hh 957 2005-03-07 16:01:20Z sjoyeux $
3  */
4 #ifndef UTILMM_UTILS_ARG_TRAITS_HEADER
5 # define UTILMM_UTILS_ARG_TRAITS_HEADER
6 
7 #include "boost/type_traits.hpp"
8 #include "boost/mpl/if.hpp"
9 
10 namespace utilmm {
11 
25  template<typename Ty>
26  struct arg_traits {
27  private:
28  typedef typename boost::remove_cv<Ty>::type real_type;
29 
30  typedef typename boost::mpl::if_c< boost::is_pod<real_type>::value,
31  real_type,
32  real_type const &>::type computed_type;
33  public:
38  typedef computed_type type;
39 
40  }; // namespace utilmm::arg_traits<>
41 
42 } // namespace utilmm
43 
44 #endif // UTILMM_UTILS_ARG_TRAITS_HEADER
45 
Definition: auto_flag.hh:6
argument type traits
Definition: arg_traits.hh:26
computed_type type
argument type
Definition: arg_traits.hh:38

Generated on Mon Oct 22 2018 18:39:28 for Util-- by doxygen 1.8.13
SourceForge.net Project Page