GMP 0.3.0
Generative Metaprogramming library for C++
Loading...
Searching...
No Matches
string.hpp
Go to the documentation of this file.
1// ___ __ __ ___
2// / __| \/ | _ \ GMP(Generative Metaprogramming)
3// | (_ | |\/| | _/ version 0.1.0
4// \___|_| |_|_| https://github.com/lkimuk/gmp
5//
6// SPDX-FileCopyrightText: 2023-2026 Miles Li <https://www.cppmore.com/>
7// SPDX-License-Identifier: MIT
8//
9// This file is part of the GMP (Generative Metaprogramming) library.
10// Full project source: https://github.com/lkimuk/gmp
11
12#ifndef GMP_STRING_HPP_
13#define GMP_STRING_HPP_
14
15namespace gmp {
16
21constexpr bool is_equal(const char* lhs, const char* rhs) noexcept {
22 return *lhs == *rhs && (!*lhs || is_equal(lhs + 1, rhs + 1));
23}
24
27} // namespace gmp
28
29#endif // GMP_STRING_HPP_
constexpr bool is_equal(const char *lhs, const char *rhs) noexcept
Definition string.hpp:21
consteval auto enum_values()
Get all enumerator values of an enumeration type at compile-time.
Definition meta.hpp:155
Definition lock.hpp:21