MT Core (C++)
Core library for replacing C++ standard in project usage
Loading...
Searching...
No Matches
storage.hpp
Go to the documentation of this file.
1/*
2
3Copyright 2025 Matthew Tolman
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16
17*/
18
19#ifndef MTCORE_UNITS_STORAGE_HPP
20#define MTCORE_UNITS_STORAGE_HPP
21
23#include "mtcore/units/base.hpp"
24
25namespace mtcore::units {
26 namespace storage {
27 constexpr auto byte = Units<Unit<dimensions::STORAGE>>{};
36
46 }
47
48 MTCORE_DEF_UNIT_NAME(storage, byte, B)
49 MTCORE_DEF_UNIT_NAME(storage, bit, b)
50 MTCORE_DEF_UNIT_NAME(storage, exabyte, EB)
51 MTCORE_DEF_UNIT_NAME(storage, exabit, Eb)
52 MTCORE_DEF_UNIT_NAME_SI_PREFIXES_LARGE(storage, byte, byte, B)
53 MTCORE_DEF_UNIT_NAME_SI_PREFIXES_LARGE(storage, bit, bit, b)
54}
55#endif //MTCORE_UNITS_STORAGE_HPP
constexpr auto gigabit
Definition storage.hpp:42
constexpr auto bit
Definition storage.hpp:37
constexpr auto decabyte
Definition storage.hpp:28
constexpr auto terabyte
Definition storage.hpp:33
constexpr auto kilobyte
Definition storage.hpp:30
constexpr auto megabyte
Definition storage.hpp:31
constexpr auto kilobit
Definition storage.hpp:40
constexpr auto decabit
Definition storage.hpp:38
constexpr auto gigabyte
Definition storage.hpp:32
constexpr auto hectobit
Definition storage.hpp:39
constexpr auto exabit
Definition storage.hpp:45
constexpr auto petabit
Definition storage.hpp:44
constexpr auto exabyte
Definition storage.hpp:35
constexpr auto terabit
Definition storage.hpp:43
constexpr auto petabyte
Definition storage.hpp:34
constexpr auto hectobyte
Definition storage.hpp:29
constexpr auto megabit
Definition storage.hpp:41
Base namespace for units.
Definition angle.hpp:24
List of units.
#define MTCORE_DEF_UNIT_NAME_SI_PREFIXES_LARGE(NS, UNIT, US_NAME, ABBREV)
#define MTCORE_DEF_UNIT_NAME(NS, UNIT, ABBREV)