Public Types | Private Types
utilmm::arg_traits< Ty > Struct Template Reference

argument type traits More...

#include <arg_traits.hh>

List of all members.

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

Detailed Description

template<typename Ty>
struct utilmm::arg_traits< Ty >

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.

Parameters:
Tythe 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.

Author:
Frédéric Py <fpy@laas.fr>

Definition at line 26 of file arg_traits.hh.


Member Typedef Documentation

template<typename Ty>
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.

template<typename Ty>
typedef boost::remove_cv<Ty>::type utilmm::arg_traits< Ty >::real_type [private]

Definition at line 28 of file arg_traits.hh.

template<typename Ty>
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.


The documentation for this struct was generated from the following file:


utilmm
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Wed Sep 16 2015 07:05:43