knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
knowrob::parsers::make_shared_f< T > Struct Template Reference

#include <common.h>

Classes

struct  result
 

Public Member Functions

template<typename... A>
result< A... >::type operator() (A &&... a) const
 
template<typename... A>
result< A... >::type operator() (A &&... a) const
 

Detailed Description

template<typename T>
struct knowrob::parsers::make_shared_f< T >

Definition at line 17 of file common.h.

Member Function Documentation

◆ operator()() [1/2]

template<typename T >
template<typename... A>
result<A...>::type knowrob::parsers::make_shared_f< T >::operator() ( A &&...  a) const
inline

Definition at line 24 of file common.h.

24  {
25  return std::make_shared<T>(std::forward<A>(a)...);
26  }

◆ operator()() [2/2]

template<typename T >
template<typename... A>
result<A...>::type knowrob::parsers::make_shared_f< T >::operator() ( A &&...  a) const
inline

Definition at line 24 of file common.h.

24  {
25  return std::make_shared<T>(std::forward<A>(a)...);
26  }

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