Skip to content

Commit f7ad263

Browse files
committed
Add comment on namespace in which compare(), operatorX() is defined
1 parent e08353c commit f7ad263

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/nonstd/string.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2039,13 +2039,17 @@ split_right(
20392039
// Comparision:
20402040
//
20412041

2042+
// defined in namespace nonstd
2043+
20422044
#define string_MK_COMPARE( CharT ) \
20432045
string_nodiscard inline int \
20442046
compare( std17::basic_string_view<CharT> lhs, std17::basic_string_view<CharT> rhs ) \
20452047
{ \
20462048
return lhs.compare( rhs ); \
20472049
}
20482050

2051+
// defined in namespace nonstd::string::std17
2052+
20492053
#define string_MK_COMPARE_EQ( CharT ) \
20502054
string_nodiscard inline bool \
20512055
operator==( basic_string_view<CharT> lhs, basic_string_view<CharT> rhs ) \

0 commit comments

Comments
 (0)