xdrpp
RFC4506 XDR compiler and message library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
xdr::field_ptr< T, F, Ptr > Struct Template Reference

Type-level representation of a pointer-to-member value. More...

#include <types.h>

Public Types

using class_type = T
 
using field_type = F
 
using value_type = F T::*
 

Public Member Functions

F & operator() (T &t) const
 
const F & operator() (const T &t) const
 
F & operator() (T &&t) const
 

Static Public Member Functions

static Constexpr value_type value ()
 

Detailed Description

template<typename T, typename F, F T::* Ptr>
struct xdr::field_ptr< T, F, Ptr >

Type-level representation of a pointer-to-member value.

When used as a function object, dereferences the field, and returns it as the same reference type as its argument (lvalue rference, const lvalue reference, or const rvalue reference).

Definition at line 629 of file types.h.


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