tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
endian.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2// SPDX-FileCopyrightText: Copyright (C) 2019 Tobias Hienzsch
3
4#ifndef TETL_BIT_ENDIAN_HPP
5#define TETL_BIT_ENDIAN_HPP
6
7namespace etl {
8
9/// \brief Indicates the endianness of all scalar types. If all scalar types are
10/// little-endian, `endian::native` equals `endian::little`. If all scalar types
11/// are big-endian, `endian::native` equals `endian::big`.
12///
13/// https://en.cppreference.com/w/cpp/types/endian
14///
15/// \ingroup bit
16enum struct endian {
17#if defined(_MSC_VER) and not defined(__clang__)
18 little = 0,
19 big = 1,
21#else
25#endif
26};
27
28} // namespace etl
29
30#endif // TETL_BIT_ENDIAN_HPP
endian
Indicates the endianness of all scalar types. If all scalar types are little-endian,...
Definition endian.hpp:16
Definition adjacent_find.hpp:9