JSON RPC
JSON-RPC 2.0 library for C++
wwa::json_rpc::details::function_traits< T > Struct Template Reference

Primary template for function traits. More...

#include <details.h>

Public Types

using args_tuple = typename call_type::args_tuple
 A tuple of the argument types.
 
using return_type = typename call_type::return_type
 The return type of the functor.
 

Private Types

using call_type = function_traits<decltype(&T::operator())>
 Type traits for the call operator.
 

Detailed Description

template<typename T>
struct wwa::json_rpc::details::function_traits< T >

Primary template for function traits.

Specialization for functors (objects with operator()).

This template is specialized for various function types to extract the return type and argument types.

Template Parameters
TThe function type.
TThe functor type.

Definition at line 172 of file details.h.

Member Typedef Documentation

◆ args_tuple

template<typename T >
using wwa::json_rpc::details::function_traits< T >::args_tuple = typename call_type::args_tuple

A tuple of the argument types.

Definition at line 178 of file details.h.

◆ call_type

template<typename T >
using wwa::json_rpc::details::function_traits< T >::call_type = function_traits<decltype(&T::operator())>
private

Type traits for the call operator.

Definition at line 174 of file details.h.

◆ return_type

template<typename T >
using wwa::json_rpc::details::function_traits< T >::return_type = typename call_type::return_type

The return type of the functor.

Definition at line 177 of file details.h.


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