[ Web Proxy ]
URL:
Viewing: https://ko.cppreference.com/cpp/language/classes [Back]  [Original]

Classes - cppreference.com
cppreference.com

Classes

cppreference.com
 
 
C++
General topics
Flow control
Conditional execution statements
Iteration statements
Jump statements
Functions
function declaration
lambda function declaration
function template
inline specifier
exception specifications (deprecated)
noexcept specifier (C++11)
Exceptions
Namespaces
Types
decltype specifier (C++11)
Specifiers
cv specifiers
storage duration specifiers
constexpr specifier (C++11)
auto specifier (C++11)
alignas specifier (C++11)
Initialization
Literals
Expressions
alternative representations
Utilities
Types
typedef declaration
type alias declaration (C++11)
attributes (C++11)
Casts
implicit conversions
const_cast conversion
static_cast conversion
dynamic_cast conversion
reinterpret_cast conversion
C-style and functional cast
Memory allocation
Classes
Class-specific function properties
Special member functions
Templates
class template
function template
template specialization
parameter packs (C++11)
Miscellaneous
Inline assembly
 
 

.

declaration decl-specifier-seq -(class-specifier) . :

class-key attr class-head-name { member-specification } (1)
class-key attr class-head-name : base-specifier-list { member-specification } (2)
class-key - class, struct, union
attr - (since C++11) () attributes
class-head-name - . nested-name-specifier( (scope-resolution) , (scope-resolution) ) , keyword final . . ( final )
base-specifier-list - (see derived class)
member-specification - , (see class definition)

access mode mode struct class-key public class class-key private , struct class C++ . class struct ..

class-key union 1 union .

:

1) :
b)
2) :
a)
b)
3) (nested types):
a)
b) typedef type alias (since C++11) (alias)
4) from all unscoped enumerations defined within the class, or introduced by using-declarations or using-enum-declarations (since C++20)
5) (variable (since C++14) ) (non-local) class/struct/union .

, namespace .

, , , , union . , .

. dynamic_cast typeid . .

. .

constexpr LiteralType : constexpr .

(since C++11)

: .

(since C++11)
(since C++11)

Web Proxy Viewer  |  New URL  |  Original Page