PoDoFo 1.2.0
Loading...
Searching...
No Matches
span.h
1#ifndef AUX_SPAN_H
2#define AUX_SPAN_H
3#pragma once
4
5#include "podofo_config.h"
6
7#ifdef PODOFO_DEVENDOR_TCBSPAN
8#include <tcb/span.hpp>
9#else
10#include <podofo/3rdparty/span.hpp>
11#endif
12
13namespace PoDoFo
14{
15 // https://stackoverflow.com/questions/56845801/what-happened-to-stdcspan
17 template <class T, size_t Extent = tcb::dynamic_extent>
18 using cspan = tcb::span<const T, Extent>;
19
21 template <class T, size_t Extent = tcb::dynamic_extent, typename std::enable_if<!std::is_const_v<T>, int>::type = 0>
22 using mspan = tcb::span<T, Extent>;
23}
24
25#endif // AUX_SPAN_H
All classes, functions, types and enums of PoDoFo are members of these namespace.
Definition basetypes.h:13
tcb::span< const T, Extent > cspan
Constant span.
Definition span.h:18
tcb::span< T, Extent > mspan
Mutable span.
Definition span.h:22