tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
sequenced_policy.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2// SPDX-FileCopyrightText: Copyright (C) 2024 Tobias Hienzsch
3
4#ifndef TETL_EXECUTION_SEQUENCED_POLICY_HPP
5#define TETL_EXECUTION_SEQUENCED_POLICY_HPP
6
7#include <etl/_execution/is_execution_policy.hpp>
8
9namespace etl::execution {
10
11/// The execution policy type used as a unique type to disambiguate parallel
12/// algorithm overloading and require that a parallel algorithm's execution
13/// may not be parallelized. The invocations of element access functions in
14/// parallel algorithms invoked with this policy (usually specified as
15/// etl::execution::seq) are indeterminately sequenced in the calling thread.
16///
17/// \ingroup execution
19
20/// \relates sequenced_policy
21/// \ingroup execution
22inline constexpr auto seq = sequenced_policy{};
23
24} // namespace etl::execution
25
26template <>
28
29#endif // TETL_EXECUTION_SEQUENCED_POLICY_HPP
constexpr auto seq
Definition sequenced_policy.hpp:22
Definition sequenced_policy.hpp:9
Definition adjacent_find.hpp:9
The execution policy type used as a unique type to disambiguate parallel algorithm overloading and re...
Definition sequenced_policy.hpp:18
Checks whether T is a standard or implementation-defined execution policy type.
Definition is_execution_policy.hpp:14