Moved member variables from constructor to initialization list

This commit is contained in:
Wilson E. Alvarez
2017-07-30 19:07:04 -04:00
parent 950b205609
commit 6d112a68b6
22 changed files with 196 additions and 215 deletions

View File

@@ -37,9 +37,9 @@ struct Pair {
S second;
Pair() {}
Pair(F p_first, S p_second) {
first = p_first;
second = p_second;
Pair(F p_first, S p_second)
: first(p_first),
second(p_second) {
}
};