Drake
Drake C++ Documentation
wrap_arg_default< T > Struct Template Reference

Detailed Description

template<typename T>
struct drake::pydrake::wrap_arg_default< T >

Default case for argument wrapping, with pure pass-through.

Consider inheriting from this for base cases. N.B. Wrapped is not necessary, but is used for demonstration purposes.

#include <drake/bindings/pydrake/common/wrap_function.h>

Public Types

using Wrapped = T
 

Static Public Member Functions

static Wrapped wrap (T arg)
 
static T unwrap (Wrapped arg_wrapped)
 

Member Typedef Documentation

◆ Wrapped

using Wrapped = T

Member Function Documentation

◆ unwrap()

static T unwrap ( Wrapped  arg_wrapped)
static

◆ wrap()

static Wrapped wrap ( arg)
static

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