fork download
  1. #include <iostream>
  2. #include <map>
  3. #include <string>
  4. #include <boost/assign.hpp>
  5. int SINGLE_CELL_CAMERA = 1;
  6.  
  7. typedef std::map<unsigned short, std::pair<char,std::string> > DeviceTypeList;
  8. DeviceTypeList g_DeviceTypeList =
  9. boost::assign::map_list_of((unsigned short)SINGLE_CELL_CAMERA, std::make_pair('B',"Single Cell Camera"));
  10. int main()
  11. {
  12. std::cout << g_DeviceTypeList[1].first << " " << g_DeviceTypeList[1].second << '\n';
  13. }
  14.  
Success #stdin #stdout 0s 2860KB
stdin
Standard input is empty
stdout
B Single Cell Camera