diff --git a/README.md b/README.md index 55ceb98..7b234a7 100644 --- a/README.md +++ b/README.md @@ -80,15 +80,6 @@ Header-only C++17 library provides nameof macros and functions to obtain simple nameof::nameof_type() -> "int" ``` -* Nameof full (with template suffix) - ```cpp - // Name of function. - NAMEOF_FULL(foo()) -> "foo" - - // Name of member function. - NAMEOF_FULL(somevar.some_method()) -> "some_method" - ``` - ## Remarks * Nameof returns `std::string_view`. If argument does not have name, returns empty string. @@ -101,7 +92,16 @@ Header-only C++17 library provides nameof macros and functions to obtain simple #include ``` -* If you need of raw fully-qualified name, use NAMEOF_RAW. +* If you need name with template suffix, use NAMEOF_FULL. + ```cpp + // Name of function. + NAMEOF_FULL(foo()) -> "foo" + + // Name of member function. + NAMEOF_FULL(somevar.some_method()) -> "some_method" + ``` + +* If you need raw fully-qualified name, use NAMEOF_RAW. ```cpp NAMEOF_RAW(somevar.somefield) -> "somevar.somefield" NAMEOF_RAW(&some_class::some_method) -> "&some_class::some_method"