argument type traits More...
#include <arg_traits.hh>
Public Types | |
typedef computed_type | type |
argument type | |
Private Types | |
typedef boost::mpl::if_c < boost::is_pod< real_type > ::value, real_type, real_type const & >::type | computed_type |
typedef boost::remove_cv< Ty > ::type | real_type |
argument type traits
This traits is an helper to determine the classical argument type used to pass a given type as argument to a function.
Ty | the type to pass as argument |
In fact this class just determine if the givent type is a complex one and in this case proposes to pass it as a const reference, otherwise -- it is a POD -- the argument type is the same as Ty
.
Definition at line 26 of file arg_traits.hh.
typedef boost::mpl::if_c< boost::is_pod<real_type>::value, real_type, real_type const &>::type utilmm::arg_traits< Ty >::computed_type [private] |
Definition at line 32 of file arg_traits.hh.
typedef boost::remove_cv<Ty>::type utilmm::arg_traits< Ty >::real_type [private] |
Definition at line 28 of file arg_traits.hh.
typedef computed_type utilmm::arg_traits< Ty >::type |
argument type
This typedef is the type used to pass the given type as argument
Definition at line 38 of file arg_traits.hh.