From 0a97a1e05aeca4fffb22b955ad6098c92d9a2ff9 Mon Sep 17 00:00:00 2001 From: neargye Date: Fri, 5 Apr 2019 17:21:26 +0500 Subject: [PATCH] update readme --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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"