6#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_ITERATOR_ITER_MOVE_HPP_
7#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_ITERATOR_ITER_MOVE_HPP_
15#include "arene/base/iterator/detail/is_dereferenceable.hpp"
16#include "arene/base/stdlib_choice/declval.hpp"
17#include "arene/base/stdlib_choice/enable_if.hpp"
18#include "arene/base/stdlib_choice/forward.hpp"
19#include "arene/base/stdlib_choice/is_class.hpp"
20#include "arene/base/stdlib_choice/is_enum.hpp"
21#include "arene/base/stdlib_choice/is_lvalue_reference.hpp"
22#include "arene/base/stdlib_choice/move.hpp"
23#include "arene/base/stdlib_choice/remove_reference.hpp"
29namespace itr_move_detail {
33auto iter_move() ->
void =
delete;
40 template <
typename Itr>
44 template <
typename Itr>
48 template <
typename Itr>
62 std::is_class<std::remove_reference_t<Itr>>::value || std::is_enum<std::remove_reference_t<Itr>>::value>,
64 constexpr auto operator()(Itr&& iterator)
const noexcept(
noexcept(iter_move(
std::declval<Itr>())))
65 -> adl_itr_move_rt<Itr> {
77 typename DerefT = deref_t<Itr&&>,
81 std::enable_if_t<std::is_lvalue_reference<DerefT>::value>> =
nullptr>
95 typename DerefT = deref_t<Itr&&>,
99 std::enable_if_t<!std::is_lvalue_reference<DerefT>::value>> =
nullptr>
100 constexpr auto operator()(Itr&& iterator)
const noexcept(
noexcept(*
std::declval<Itr>()))
#define ARENE_CPP14_INLINE_VARIABLE(type, name)
Emulates C++17's inline variable declarations for function objects.
Definition cpp14_inline.hpp:69
Definition external_vector.hpp:803
Definition accumulate.hpp:37
constexpr bool substitution_succeeds
Determines if a template can be instantiated successfully, similar to C++20's requires clause.
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
constexpr auto move(T &&value) noexcept -> remove_reference_t< T > &&
Cast a value to an rvalue.
Definition move.hpp:30
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
auto declval() noexcept -> T &&
A dummy function that is declared but not defined, with a user-specified return type,...
constexpr auto forward(remove_reference_t< T > &value) noexcept -> T &&
Cast a value to an rvalue if T is an rvalue or rvalue reference, otherwise forward an lvalue referenc...
Definition forward.hpp:24