libzypp  17.38.7
span.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
25 #ifndef ZYPPNG_BASE_SPAN_H
26 #define ZYPPNG_BASE_SPAN_H
27 
28 #include <cstddef>
29 
30 #if defined(__cpp_lib_span) && __cpp_lib_span >= 202002L && !defined(ZYPPNG_FORCE_TCB_SPAN)
31 # include <span>
32  namespace zyppng {
33  using std::span;
34  using std::dynamic_extent;
35  }
36 #else
37 # include <tcb/span.hpp>
38  namespace zyppng {
39  using tcb::span;
40  using tcb::dynamic_extent;
41  }
42 #endif
43 
44 #endif // ZYPPNG_BASE_SPAN_H