codex
Loading...
Searching...
No Matches
codex::CWrapper< f > Struct Template Reference

Wraps a C-style function taking void* and calls it with T* instead. More...

#include <c_wrapper.hpp>

Collaboration diagram for codex::CWrapper< f >:

Static Public Member Functions

static R wrapper (void *p, Args ...args)
 
static R wrapper (void *p, Args ...args)
 

Public Attributes

(*)(void *, Args...) operator R ()
 

Detailed Description

template<typename T, typename R, typename ... Args, R(T::*)(Args...) f>
struct codex::CWrapper< f >

Wraps a C-style function taking void* and calls it with T* instead.

Member Function Documentation

◆ wrapper() [1/2]

template<typename T , typename R , typename ... Args, R(T::*)(Args...) f>
static R codex::CWrapper< f >::wrapper ( void * p,
Args ... args )
inlinestatic

◆ wrapper() [2/2]

template<typename T , typename R , typename ... Args, R(T::*)(Args...) f>
static R codex::CWrapper< f >::wrapper ( void * p,
Args ... args )
inlinestatic

Member Data Documentation

◆ operator R

template<typename T , typename R , typename ... Args, R(T::*)(Args...) f>
(*)(void *, Args...) codex::CWrapper< f >::operator R()
inline

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