Broad Network


C++ Specifier Classification

Specifiers in C++ - Part 8

Forward: In this part of the series, I give you a summary of C++ specifiers in categories.

By: Chrysanthus Date Published: 25 Aug 2012

Introduction

This is part 8 of my series, Specifiers in C++. In this part of the series, I give you a summary of C++ specifiers in categories. I assume you have read the previous part of the series, before reaching here. This is a continuation.

Simple Type Specifiers
Simple Type Specifiers are specifiers for fundamental objects. They are:

char
unsigned char
signed char
bool
unsigned int (unsigned)
signed int (int or signed)
unsigned short int (unsigned short)
unsigned long int (unsigned long)
signed long int (signed long)
long int (long)
signed short int (signed short)
short int (short)
wchar_t
float
double
long
void

Storage Class Specifiers
Storage Class Specifiers are to do with the lifespan of objects, the scope of an object, and where (file) an object can be seen and used. These specifiers are:

auto (register): for local scope objects.
static: local scope object continues to be alive until end of program, even after end of local scope.
extern: make same object seen in different files, and allows normal declaration of object below in program.
mutable: see later …

C++ cv-qualifiers
This is for the use and non-use of the specifier, const.

Function Specifiers
The specifiers in this category can precede function declaration. They are:

inline: allows function to be defined at point of call.
virtual: allows member function in base class to be defined in inherited class
explicit: see later . . .

Type Specifiers
This category of specifiers is used with fundamental object types, derived object types (e.g. pointer), class type, struct type, and enum type. They are:

simple-type-specifier: e.g. int
class-specifier: class & struct & union
enum-specifier: enum
elaborated-type-specifier: see later . . .
cv-qualifier: const

The typedef Specifier
There is only one specifier in this category, which is, typedef. It is used to create a synonym type specifier for one or a composite specifier.

The friend Specifier
There is only one specifier in this category, which is, friend. The specifier is used to make a class a friend to another class, enabling the class to access the private and protected members of the friend class.

That is it, for this part of the series. And we are at the end of the series.

I assume you have completed this series. It means you already had the professional skills in C++. Now you are in an advanced course of C++. You may already be working. If you ever have too much work, you can subcontract (outsource) some or all to someone in the site below.

Chrys

Programming Solutions

Related Courses

C++ Course
Relational Database and Sybase
Windows User Interface
Computer Programmer – A Jack of all Trade – Poem

Comments

Become the Writer's Fan
Send the Writer a Message