Visual C++ 2005 Keywords [Bottom] [Top]
MS Visual C++ 2005 에서 사용되는 키워드 입니다 (확장된 키워드 포함).
abstract
_ _alignof Operator
array
_ _asm
_ _assume
_ _based
bool
break
case
catch
_ _cdecl
char
class
const
const_cast
continue
_ _declspec
default
delegate
delete
do
double
dynamic_cast
else
enum
enum class
enum struct
event
_ _event
_ _except
explicit
extern
false
_ _fastcall
_ _finally
finally
float
for
for each, in
_ _forceinline
friend
friend_as
gcnew
generic
goto
_ _identifier
if
_ _if_exists
_ _if_not_exists
initonly
_ _inline
inline
int
_ _int8
_ _int16
_ _int32
_ _int64
_ _interface
interface class
interface struct
interior_ptr
_ _leave
literal
long
_ _m64
_ _m128
_ _m128d
_ _m128i
_ _multiple_inheritance
mutable
namespace
new
new
_ _noop
nullptr
operator
private
property
protected
public
_ _raise
ref struct
ref class
register
reinterpret_cast
return
safecast
sealed
short
signed
_ _single_inheritance
sizeof
static
static_cast
_ _stdcall
struct
_ _super
switch
template
this
throw
true
try
_ _try/_ _except, _ _try/_ _finally
typedef
typeid
typeid
typename
_ _unaligned
union
unsigned
using declaration, using directive
_ _uuidof
value struct
value class
virtual
_ _virtual_inheritance
void
volatile
_ _w64
_ _wchar_t, wchar_t
while
Microsoft extensions [Bottom] [Top]
MS Visual C++ 2005 에서 확장된 키워드 중에서 특별한 목적으로 구분된 키워드 입니다.
1. Extended attributes for the _ _declspec keyword. [Bottom] [Top]
deprecated
dllexport
dllimport
naked
noinline
noreturn
nothrow
novtable
property
selectany
thread
uuid
2. Applicable to Managed Extensions for C++ only. This syntax is deprecated in Microsoft Visual C++ 2005. [Bottom] [Top]
_ _abstract
_ _box
_ _delegate
_ _gc
_ _nogc
_ _pin
_ _property
_ _sealed
_ _try_cast
_ _value
3. Intrinsic function used in event handling. [Bottom] [Top]
_ _hook
_ _unhook
유용한 C++ 키워드 [Bottom] [Top]
잘 사용되지는 않지만 유용한 키워드들을 몇가지 정리해 봅니다.
1. explicit 키워드 [Bottom] [Top]
클래스의 단일 인자 생성자는 암시적 타입 변환 기능을 동시에 가지고 있다. 하지만 불필요한 타입 변환으로 문제가 발생할 수 있으므로 이러한 암시적 변환을 제한하는 것이 바로 explicit 키워드다. 따라서 explicit 키워드로 선언된 생성자를 명시호출 생성자 라고도 하며 이런 생성자는 프로그래머가 직접 호출해 주어야 한다. 참고로 복사 생성자에서는 절대로 호출되지 않는다.
2. volatile 키워드 [Bottom] [Top]
volatile 키워드로 선언된 변수는 운영체제나 하드웨어, 동시에 실행되는 스레드 등에 의하여 수정될 수 있음을 나타내는 것으로 해당 변수를 컴파일러가 최적화하지 못하도록 한다. 이것은 코드 최적화를 위하여 임시 공간(예: 레지스터)등을 사용하지 못하도록 제한하는 것으로 volatile 키워드로 선언된 변수는 메모리에서 직접 읽도록 최적화하지 않는다.
