xtd 1.0.0
Loading...
Searching...
No Matches
index.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../index.hpp"
6
8namespace xtd {
10 inline namespace literals {
12
28 [[nodiscard]] constexpr auto operator""_i(long double n) -> xtd::index {return xtd::index {static_cast<xtd::usize>(n)};}
29
44 [[nodiscard]] constexpr auto operator""_i(unsigned long long n) -> xtd::index {return xtd::index {static_cast<xtd::usize>(n)};}
45
60 [[nodiscard]] auto operator""_i(const char* s, xtd::usize n) -> xtd::index;
61
76 [[nodiscard]] auto operator""_i(const char8_t* s, xtd::usize n) -> xtd::index;
77
92 [[nodiscard]] auto operator""_i(const char16_t* s, xtd::usize n) -> xtd::index;
93
108 [[nodiscard]] auto operator""_i(const char32_t* s, xtd::usize n) -> xtd::index;
109
124 [[nodiscard]] auto operator""_i(const wchar_t* s, xtd::usize n) -> xtd::index;
126 }
127}
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
@ s
The S key.
Definition console_key.hpp:124
@ n
The N key.
Definition console_key.hpp:114
Contains xtd::index struct.
The xtd::literals namespace contains all xtd's litterals operators.
Definition byte.hpp:15
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Represents a type that can be used to index a collection either from the beginning or the end.
Definition index.hpp:38