AME
ame_String.hpp
Go to the documentation of this file.
1
9#pragma once
10
11#include <cstdint>
12
13namespace ame
14{
15template <typename Char1Type, typename Char2Type>
16constexpr bool stringComp (Char1Type str1, Char2Type str2, const uint32_t size)
17{
19 for (uint32_t i = 0; i < size; ++i)
20 {
21 if (str1[i] != str2[i])
22 {
23 return false;
24 }
25 }
26 return true;
27}
28} // namespace ame
constexpr bool stringComp(Char1Type str1, Char2Type str2, const uint32_t size)
Definition: ame_String.hpp:16