Skip to content

Commit 7695b27

Browse files
authored
Update README.md
1 parent 81f126b commit 7695b27

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,18 @@ Include it in your solution, and you are good to go.
2222
# Guide
2323
All evaluations occurs after removing const, volatile, reference.
2424
Implementation is in namespace woon2.
25-
(Use like woon2::is_smart_ptr<T>, or write using namespace woon2; in your code.)
25+
```c++
26+
#include "smart_pointer_type_trait.hpp" // include the header file.
27+
28+
// ...
29+
30+
woon2::is_smart_ptr_v<T>; // usage guide 1
31+
32+
using namespace woon2; // usage guide 2
33+
is_smart_ptr_v<T>;
34+
35+
// ...
36+
```
2637

2738
## Hard Type Traits
2839
* is_pointable<T>

0 commit comments

Comments
 (0)