-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBool.cpp
More file actions
36 lines (27 loc) · 673 Bytes
/
Bool.cpp
File metadata and controls
36 lines (27 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* \file Bool.cpp
* \brief
*/
#include <StdStream/StdStream.h>
#include <StdTest/StdTest.h>
#include <Stl.h>
//-------------------------------------------------------------------------------------------------
int main(int, char **)
{
std::map<std::string, bool> m;
m["A"] = true;
m["B"] = false;
m["C"] = true;
for (auto &it_m : m) {
std::cout << "{" << it_m.first << "," << it_m.second << "}" << std::endl;
}
std::cout << "{Z," << m["Z"] << "} - default ctor" << std::endl;
return 0;
}
//-------------------------------------------------------------------------------------------------
#if OUTPUT
{A,1}
{B,0}
{C,1}
{Z,0} - default ctor
#endif