Set: C++: Type-casting

Familiarize

Learn

Test

Play Scatter

Play Space Race

Combine with other sets Login to add to Favorites
Print: Term List | Flashcards Editing not allowed
Export Deleting not allowed

Share these flash cards

With group: None
HTML link to set: Tiny link:
Share on Facebook Share on MySpace

All 13 terms

TermDefinition
type-castingconverting an expression of a given type into another type
implicit conversionconversion that does not require an operator; automatically performed when a value is copied toa campatible type
identifier1 = (type1) indentifier2;c-like cast notation
identifier1 = type1 (indentifier2);function cast notation
dynamic_cast <new_type> (expression)dynamic cast
reinterpret_cast <new_type> (expression)reinterpret cast
static_cast <new_type> (expression)static cast
const_cast <new_type> (expression)constant cast
dynamic_castcan be used only with pointers and references to bojets; it's purpose is to ensure that the result of the type conversion is a vlide complete object of the requested class
reinterpret_castcan perform conversion s between pointers to related class, not only from the derived class to its base, but alos fomr a base class to its derived
static_castconverts any pointer type to any other pointer type, even of unrelated classes
const_castmanipulates the cstness of an object, either to be set or to be removed
typeid (expression)allows to check the type of an expression

Set Information

Terms 13
Creator jtwilliams00
Created March 30, 2009
Groups None
Subjects C++, C plus plus, programming
Access Anyone
Edit Creator Only
Get rid of ads on Quizlet
Pop out

Discuss

No Messages
Last Message: never

You must be logged in to discuss this set.