Ruby 3.2.1p31 (2023-02-08 revision 31819e82c88c6f8ecfaeb162519bfa26a14b21fd)
Static Public Member Functions
ruby::backward::cxxanyargs::define_method::driver0< T, F >::engine< N, U > Struct Template Reference

Defines a method. More...

#include <cxxanyargs.hpp>

Static Public Member Functions

static void define (T mid, type func)
 Defines Kernel::mid as func, whose arity is N.
 
static void define (T mid, U func)
 Defines Kernel::mid as func, whose arity is N.
 
static void define (T mid, notimpl_type func)
 Defines Kernel::mid as func, whose arity is N.
 

Detailed Description

template<typename T, void(*)(T mid, type func, int arity) F>
template<int N, typename U>
struct ruby::backward::cxxanyargs::define_method::driver0< T, F >::engine< N, U >

Defines a method.

Template Parameters
NArity of the function.
UThe function in question

Definition at line 605 of file cxxanyargs.hpp.

Member Function Documentation

◆ define() [1/3]

template<typename T , void(*)(T mid, type func, int arity) F>
template<int N, typename U >
static void ruby::backward::cxxanyargs::define_method::driver0< T, F >::engine< N, U >::define ( mid,
notimpl_type  func 
)
inlinestatic

Defines Kernel::mid as func, whose arity is N.

Parameters
[in]midName of the method to define.
[in]funcFunction that implements klass::mid.
Deprecated:
Pass correctly typed function instead.

Definition at line 627 of file cxxanyargs.hpp.

◆ define() [2/3]

template<typename T , void(*)(T mid, type func, int arity) F>
template<int N, typename U >
static void ruby::backward::cxxanyargs::define_method::driver0< T, F >::engine< N, U >::define ( mid,
type  func 
)
inlinestatic

Defines Kernel::mid as func, whose arity is N.

Parameters
[in]midName of the method to define.
[in]funcFunction that implements klass::mid.
Deprecated:
Pass correctly typed function instead.

Definition at line 610 of file cxxanyargs.hpp.

◆ define() [3/3]

template<typename T , void(*)(T mid, type func, int arity) F>
template<int N, typename U >
static void ruby::backward::cxxanyargs::define_method::driver0< T, F >::engine< N, U >::define ( mid,
U  func 
)
inlinestatic

Defines Kernel::mid as func, whose arity is N.

Parameters
[in]midName of the method to define.
[in]funcFunction that implements klass::mid.

Definition at line 619 of file cxxanyargs.hpp.


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