C++ keywords
출처: http://ko.cppreference.com/w/cpp/keyword
- alignas (since C++11)
- alignof (since C++11)
- and
- and_eq
- asm
- auto(1)
- bitand
- bitor
- bool
- break
- case
- catch
- char
- char16_t (since C++11)
- char32_t (since C++11)
- class
- compl
- const
- constexpr (since C++11)
- const_cast
- continue
- decltype (since C++11)
- default(1)
- delete(1)
- do
- double
- dynamic_cast
- else
- enum
- explicit
1 2 3 4 5 6 7 8 9 10 11 12 13 | class Fruit { public: // Fruit apple1; // Fruit apple2 = apple1; // (X) // Fruit apple2(apple1); // (O) explicit Fruit(const Fruit ©) // 대입 연산자를 이용한 객체의 생성을 막음 : price(copy.price) { ... } } | cs |
- export(1)
- extern
- false
- float
- for
- friend
- goto
- if
- inline
- int
- long
- mutable
1 2 3 | private: int applePrice; mutable int bananaPrice; // const 함수 내에서 값의 변경을 예외적으로 허용 | cs |
- namespace
- new
- noexcept (since C++11)
- not
- not_eq
- nullptr (since C++11)
- operator
- or
- or_eq
- private
- protected
- public
- register
- reinterpret_cast
- return
- short
- signed
- sizeof
- static
- static_assert (since C++11)
- static_cast
- struct
- switch
- template
- this
- thread_local (since C++11)
- throw
- true
- try
- typedef
- typeid
- typename
- union
- unsigned
- using(1)
- virtual
- void
- volatile
- wchar_t
- while
- xor
- xor_eq