5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_ALGORITHM_COPY_IF_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_ALGORITHM_COPY_IF_HPP_
14#include "arene/base/stdlib_choice/declval.hpp"
15#include "arene/base/stdlib_choice/enable_if.hpp"
16#include "arene/base/stdlib_choice/is_assignable.hpp"
17#include "arene/base/stdlib_choice/iterator_traits.hpp"
39template <
class InputIterator,
class OutputIterator,
class Predicate,
43 bool, Predicate &,
typename std::iterator_traits<InputIterator>::value_type>>> =
nullptr>
46 InputIterator first, InputIterator last, OutputIterator output,
47 Predicate pred)
noexcept(
noexcept(*output++) &&
50 noexcept(first != last) &&
56 typename
std::iterator_traits<InputIterator>::value_type>) -> OutputIterator
Type trait to detect if an instance of To is assignable to from arguments of From without throwing.
Definition is_assignable.hpp:78
provides a uniform interface to the properties of an iterator
Definition iterator_traits.hpp:90
Definition accumulate.hpp:37
constexpr bool is_invocable_r_v
Determine if a functor type is invocable with the specified return and argument types.
constexpr auto make_subrange(Iterator iterator, Sentinel sentinel) noexcept(std::is_nothrow_move_constructible< Iterator >::value &&//std::is_nothrow_move_constructible< Sentinel >::value) -> make_subrange_detail::iterator_range< Iterator, Sentinel >
Combine an iterator and sentinel into a range type that can be used with range-based for loops.
Definition make_subrange.hpp:98
constexpr bool is_nothrow_invocable_v
Determine if a functor type is no-throw invocable with the specified argument types.
constexpr auto copy_if(InputIterator first, InputIterator last, OutputIterator output, Predicate pred) noexcept(noexcept(*output++) &&//CODEQLFP(EXP52-CPP) noexcept(++first) &&//CODEQLFP(EXP52-CPP) CODEQLFP(A5-2-6) CODEQLFP(M5-14-1) noexcept(*first) &&//CODEQLFP(EXP52-CPP) CODEQLFP(A5-2-6) CODEQLFP(M5-14-1) noexcept(first !=last) &&//CODEQLFP(A5-2-6) std::is_nothrow_assignable<, typename std::iterator_traits< InputIterator >::reference >::value &&//CODEQLFP(A5-1-1) CODEQLFP(M5-3-1) base::is_nothrow_invocable_v<//Predicate &, typename std::iterator_traits< InputIterator >::value_type >) -> OutputIterator
Copies the elements in the range, defined by [first, last), to another range beginning at output....
Definition copy_if.hpp:45
typename constraints_impl::constraints< EnableIfs... >::type constraints
Helper used to express template constraints in a consistent way using std::enable_if_t.
Definition constraints.hpp:51
Definition accumulate.hpp:36
bool
Check if element Idx and all subsequent elements of the two tuples are equal.
Definition tuple.hpp:649
typename enable_if< Condition, Type >::type enable_if_t
Type alias to support constraining templates. Is an alias for the specified type if the Condition is ...
Definition enable_if.hpp:41