span.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 // SPDX-License-Identifier: BSD-3-Clause
4 // SPDX-FileCopyrightText: Czech Technical University in Prague
5 
12 #if __has_include(<span>) && __cpp_lib_span >= 202002L
13 
14 #include <span>
15 
16 namespace cras
17 {
18  using ::std::span;
19  using ::std::make_span;
20  using ::std::get;
21  using ::std::as_bytes;
22  using ::std::as_writable_bytes;
23  using ::std::dynamic_extent;
24  using ::std::byte;
25 }
26 
27 #else
28 
29 #include <cras_cpp_common/external/tcb/span.hpp>
30 
31 namespace cras
32 {
33  using ::tcb::span;
34  using ::tcb::make_span;
35  using ::tcb::get;
36  using ::tcb::as_bytes;
37  using ::tcb::as_writable_bytes;
38  using ::tcb::dynamic_extent;
39  using ::tcb::byte;
40 }
41 
42 #endif
cras
Definition: any.hpp:15


cras_cpp_common
Author(s): Martin Pecka
autogenerated on Sun Jan 14 2024 03:48:14