literals.hpp 522 Bytes
Newer Older
1
// SPDX-License-Identifier: MIT
Illia Silin's avatar
Illia Silin committed
2
// Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved.
3
4
5

#pragma once

6
7
namespace ck {
namespace literals {
8
9
10
11
12
13
14
15
16
17
18
// [P0330] Literal Suffix for (signed) size_t (C++23)
// ref: https://wg21.link/p0330r8
inline constexpr std::size_t operator""_uz(unsigned long long size)
{
    return static_cast<std::size_t>(size);
}

inline constexpr std::size_t operator""_zu(unsigned long long size)
{
    return static_cast<std::size_t>(size);
}
19
20
} // namespace literals
} // namespace ck