Utility Rack
Loading...
Searching...
No Matches
forward_capture_test.cpp File Reference

Test scenarios for Vittorio Romeo's perfect forward capture utilities. More...

#include "catch2/catch_test_macros.hpp"
#include <memory>
#include <utility>
#include "utility/forward_capture.hpp"
Include dependency graph for forward_capture_test.cpp:

Classes

struct  copyable_foo
 
struct  movable_foo
 

Functions

template<typename F >
auto test_func (F &&f_obj, int val1, int val2)
 
template<typename F >
auto invoke_non_const (F &&func) -> decltype(func())
 
template<typename F >
auto invoke_const (F &&func) -> decltype(func())
 
 TEST_CASE ("Vittorio Romeo's perfect forward parameters for lambda capture utility", "[forward_capture]")
 

Variables

constexpr int base = 3
 

Detailed Description

Test scenarios for Vittorio Romeo's perfect forward capture utilities.

Author
Cliff Green

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)