mimic++ v6
Loading...
Searching...
No Matches
SideEffectPolicies.hpp File Reference
#include "mimic++/Fwd.hpp"
#include "mimic++/policies/ArgumentList.hpp"
#include <concepts>
#include <functional>
#include <type_traits>
#include <utility>
Include dependency graph for SideEffectPolicies.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mimicpp::expectation_policies::SideEffectAction< Action >
 

Namespaces

namespace  mimicpp
 
namespace  mimicpp::expectation_policies
 
namespace  mimicpp::then
 

Functions

template<std::size_t index, typename Action>
constexpr auto mimicpp::then::apply_arg (Action &&action) noexcept(std::is_nothrow_constructible_v< std::remove_cvref_t< Action >, Action >)
 Applies the argument at the specified index on the given action.
 
template<std::size_t index, std::size_t... additionalIndices, typename Action>
constexpr auto mimicpp::then::apply_args (Action &&action) noexcept(std::is_nothrow_constructible_v< std::remove_cvref_t< Action >, Action >)
 Applies the arguments at the specified index and in that order on the given action.
 
template<typename Action>
constexpr auto mimicpp::then::apply_all (Action &&action) noexcept(std::is_nothrow_constructible_v< std::remove_cvref_t< Action >, Action >)
 Applies all arguments on the given action.
 
template<std::invocable Action>
constexpr auto mimicpp::then::invoke (Action &&action) noexcept(std::is_nothrow_constructible_v< std::remove_cvref_t< Action >, Action >)
 Invokes the given function.