Main MRPT website > C++ reference for MRPT 1.5.9
List of all members | Public Member Functions
mrpt::utils::metaprogramming::ObjectConvert< TARGET_TYPE > Struct Template Reference

Detailed Description

template<typename TARGET_TYPE>
struct mrpt::utils::metaprogramming::ObjectConvert< TARGET_TYPE >

An object for transforming between types/classes, intended for being used in STL algorithms.

Example of usage:

vector<int> v1(10); // Input
vector<double> v2(10); // Output
std::transform(v1.begin(),v1.end(), v2.begin(), ObjectConvert<double> );

Definition at line 78 of file metaprogramming.h.

#include <mrpt/utils/metaprogramming.h>

Public Member Functions

template<typename T >
TARGET_TYPE operator() (const T &val)
 

Member Function Documentation

◆ operator()()

template<typename TARGET_TYPE >
template<typename T >
TARGET_TYPE mrpt::utils::metaprogramming::ObjectConvert< TARGET_TYPE >::operator() ( const T &  val)
inline

Definition at line 80 of file metaprogramming.h.

References val.




Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020