File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 9
9
#include < stdx/cx_multimap.hpp>
10
10
#include < stdx/cx_set.hpp>
11
11
#include < stdx/cx_vector.hpp>
12
+ #include < stdx/span.hpp>
12
13
#include < stdx/tuple_algorithms.hpp>
13
14
#include < stdx/type_traits.hpp>
14
15
#include < stdx/utility.hpp>
20
21
#include < cstddef>
21
22
#include < iterator>
22
23
#include < optional>
23
- #include < span>
24
24
#include < utility>
25
25
26
26
namespace flow {
@@ -186,9 +186,9 @@ struct graph_builder {
186
186
if (not g.empty ()) {
187
187
return {};
188
188
}
189
- return std::optional<Output>{
190
- std::in_place,
191
- std::span {std::cbegin (ordered_list), std::size ( ordered_list) }};
189
+ using span_t =
190
+ stdx::span< typename Graph::key_type const , Graph::capacity ()>;
191
+ return std::optional<Output> {std::in_place, span_t { ordered_list}};
192
192
}
193
193
194
194
constexpr static void check_for_missing_nodes (auto nodes,
Original file line number Diff line number Diff line change 5
5
#include < log/log.hpp>
6
6
7
7
#include < stdx/cx_vector.hpp>
8
+ #include < stdx/span.hpp>
8
9
9
10
#include < algorithm>
10
11
#include < cstddef>
11
12
#include < iterator>
12
- #include < span>
13
13
#include < type_traits>
14
14
15
15
namespace flow {
@@ -60,8 +60,8 @@ template <stdx::ct_string Name, std::size_t NumSteps> class impl {
60
60
*
61
61
* @see flow::builder
62
62
*/
63
- constexpr explicit (true ) impl(std::span< node_t const > newMilestones) {
64
- CIB_ASSERT (NumSteps >= std::size ( newMilestones));
63
+ constexpr explicit (true )
64
+ impl(stdx::span< node_t const , NumSteps> newMilestones) {
65
65
if constexpr (loggingEnabled) {
66
66
for (auto const &milestone : newMilestones) {
67
67
functionPtrs.push_back (milestone.log_name );
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
- #include < log/log.hpp>
4
3
#include < seq/step.hpp>
5
4
6
5
#include < stdx/ct_string.hpp>
7
6
#include < stdx/cx_vector.hpp>
7
+ #include < stdx/span.hpp>
8
8
9
9
#include < array>
10
10
#include < cstddef>
11
11
#include < iterator>
12
- #include < span>
13
12
14
13
namespace seq {
15
14
enum struct direction { FORWARD = 0 , BACKWARD = 1 };
@@ -24,8 +23,7 @@ template <stdx::ct_string, std::size_t NumSteps> struct impl {
24
23
25
24
using node_t = rt_step;
26
25
27
- constexpr explicit (true ) impl(std::span<node_t const > steps) {
28
- CIB_ASSERT (NumSteps >= std::size (steps));
26
+ constexpr explicit (true ) impl(stdx::span<node_t const , NumSteps> steps) {
29
27
for (auto const &step : steps) {
30
28
_forward_steps.push_back (step.forward_ptr );
31
29
_backward_steps.push_back (step.backward_ptr );
You can’t perform that action at this time.
0 commit comments