Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
libnest2d::opt::metaloop::MapFn< N, Fn > Class Template Reference

Public Member Functions

 MapFn (Fn &&fn)
 
template<class T >
void operator() (T &&pack_element)
 

Private Attributes

Fn && fn_
 

Detailed Description

template<int N, class Fn>
class libnest2d::opt::metaloop::MapFn< N, Fn >

Constructor & Destructor Documentation

◆ MapFn()

template<int N, class Fn >
libnest2d::opt::metaloop::MapFn< N, Fn >::MapFn ( Fn &&  fn)
inline
92: fn_(forward<Fn>(fn)) {}
Fn && fn_
Definition metaloop.hpp:85

Member Function Documentation

◆ operator()()

template<int N, class Fn >
template<class T >
void libnest2d::opt::metaloop::MapFn< N, Fn >::operator() ( T &&  pack_element)
inline
94 {
95 // We provide the index as the first parameter and the pack (or tuple)
96 // element as the second parameter to the functor.
97 fn_(N, forward<T>(pack_element));
98 }

References libnest2d::opt::metaloop::MapFn< N, Fn >::fn_.

Member Data Documentation

◆ fn_

template<int N, class Fn >
Fn&& libnest2d::opt::metaloop::MapFn< N, Fn >::fn_
private

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