Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- c++
- SHA1
- Observer
- SHA512
- traits
- ChromeTab
- Functional
- Scala
- AES
- design pattern
- async
- web
- Chrono
- sprintf
- kotlin
- CustomTab
- Reflect
- ranges
- template
- Clojure
- Android
- type_traits
- WebView
- RAII
- go
- coroutines
- program
- haskell
- sha256
- stringprintf
Archives
- Today
- Total
프로그래밍 검색 블로그
type_trait / is_nullptr nullptr인지 검사 본문
1 2 3 4 5 | #include <type_traits> template<typename T> struct is_nullptr : public std::false_type{}; template<> struct is_nullptr<std::nullptr_t> : public std::true_type{}; | cs |
사용중인 IDE가 C++11이라서 타입 체크를 위해서 사용
최신 IDE라면
std::is_null_pointer
'C++ 유틸' 카테고리의 다른 글
| 함수가 끝날때 같이 해제하기 defer (0) | 2017.10.06 |
|---|---|
| 시간 관련 API (0) | 2017.10.04 |
| stringprintf string반환 sprintf 2 (0) | 2017.10.04 |
| stringprintf string반환 sprintf 1 (0) | 2017.10.04 |
| C++ Traits (0) | 2017.10.03 |
Comments