Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A class with 2 names?

Tags:

c++

While reading code I came across a class which has 2 identifiers 'naming it':

class A_EXP Node
{
//..
};

I am not able to understand what this means. Could someone help me out?

like image 959
user1546410 Avatar asked Jul 23 '12 16:07

user1546410


People also ask

Can a class have multiple names?

To assign multiple classes to a single HTML element, you need to specify each class name inside the class attribute separated with a blank space. A class name that has more than one word is commonly joined with a dash ( - ) this is also known as the kebab-case.

Can an element have 2 classes HTML?

HTML elements can be assigned multiple classes by listing the classes in the class attribute, with a blank space to separate them.

How do you give multiple class names?

To specify multiple classes, separate the class names with a space, e.g. <span class="left important">.

Can a class have two words in CSS?

Class names can be one or multiple words. If your class name is multiple words, use hyphens where you would put spaces.


1 Answers

A_EXP is probably a macro, possibly expanding to nothing at all. It may also expand to a __declspec or similar declaration, which modifies how the compiler will emit the class as object code. A common use of this pattern would be:

#define A_EXP __declspec(dllexport)
like image 55
cdhowie Avatar answered Sep 20 '22 21:09

cdhowie