It depends on the order of data member declarations in the class. So a_
will be the first one, then b_
will be the second one in your example.
More Related Contents:
- Do the parentheses after the type name make a difference with new?
- What does the explicit keyword mean?
- What is this weird colon-member (” : “) syntax in the constructor?
- Default constructor with empty brackets
- What do the following phrases mean in C++: zero-, default- and value-initialization?
- Inheriting constructors
- Does the default constructor initialize built-in types?
- Constructor initialization-list evaluation order
- Dual emission of constructor symbols
- Why do I see strange values when I print uninitialized variables?
- Why are my struct’s members not properly initialised using `{}`? [duplicate]
- Are function static variables thread-safe in GCC?
- gcc/g++: “No such file or directory”
- C++: When (and how) are C++ Global Static Constructors Called?
- C++: Where to initialize variables in constructor [duplicate]
- Has the new C++11 member initialization feature at declaration made initialization lists obsolete?
- Different ways of initializing an object in c++
- Why must const members be initialized in the constructor initializer rather than in its body?
- Is there a way to make a C++ struct value-initialize all POD member variables?
- What’s the difference between Radio r = Radio(“PSR”, 100.8) and Radio(“PSR”, 100.8)?
- Fun with uninitialized variables and compiler (GCC)
- Why should I prefer to use member initializer lists?
- C++ Member Initializer List
- How do I initialize a const data member?
- Why does integer overflow on x86 with GCC cause an infinite loop?
- Does const mean thread-safe in C++11?
- What are primitive types default-initialized to in C++?
- How to write C++ getters and setters
- Select class constructor using enable_if
- Calling a virtual function from the constructor