ONE - On-device Neural Engine
Loading...
Searching...
No Matches
bino::UniformTransform< Callable > Class Template Reference

#include <bino.h>

Public Member Functions

 UniformTransform (Callable &&cb)
 
template<typename T >
auto operator() (const std::pair< T, T > &p) const -> decltype(std::make_pair(std::declval< Callable >()(p.first), std::declval< Callable >()(p.second)))
 

Detailed Description

template<typename Callable>
class bino::UniformTransform< Callable >

Definition at line 25 of file bino.h.

Constructor & Destructor Documentation

◆ UniformTransform()

template<typename Callable >
bino::UniformTransform< Callable >::UniformTransform ( Callable &&  cb)
inline

Definition at line 28 of file bino.h.

28 : f{std::forward<Callable>(cb)}
29 {
30 // DO NOTHING
31 }

Member Function Documentation

◆ operator()()

template<typename Callable >
template<typename T >
auto bino::UniformTransform< Callable >::operator() ( const std::pair< T, T > &  p) const -> decltype(std::make_pair(std::declval<Callable>()(p.first), std::declval<Callable>()(p.second)))
inline

Definition at line 35 of file bino.h.

38 {
39 return std::make_pair(f(p.first), f(p.second));
40 }

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