BlackCat_Tensors
A GPU-supported autograd and linear algebra library, designed for neural network construction
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
bc::traits::Bind< Function, Args > Struct Template Reference

Similar to std::bind but the evaluation of the function in respect to its bound arguments are deduced if and only if the function is called. More...

#include <bind.h>

Inheritance diagram for bc::traits::Bind< Function, Args >:
Inheritance graph
[legend]
Collaboration diagram for bc::traits::Bind< Function, Args >:
Collaboration graph
[legend]

Public Member Functions

 Bind (Function func, Args... AdditionalArgs)
 

Public Attributes

Function func
 

Static Public Attributes

static constexpr int num_args = sizeof...(Args)
 

Detailed Description

template<class Function, class... Args>
struct bc::traits::Bind< Function, Args >

Similar to std::bind but the evaluation of the function in respect to its bound arguments are deduced if and only if the function is called.

IE

auto func = bc::traits::bind([](int x) {}, std::vector<double>());

will compile, even though a std::vector is not a valid argument
for the given lambda.

Constructor & Destructor Documentation

◆ Bind()

template<class Function , class... Args>
bc::traits::Bind< Function, Args >::Bind ( Function  func,
Args...  AdditionalArgs 
)
inline

Member Data Documentation

◆ func

template<class Function , class... Args>
Function bc::traits::Bind< Function, Args >::func

◆ num_args

template<class Function , class... Args>
constexpr int bc::traits::Bind< Function, Args >::num_args = sizeof...(Args)
static

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