const std::map?

前端 未结 2 1730
故里飘歌
故里飘歌 2021-01-12 07:45
// BOOST Includes
#include              // Boost::Assign
#include      // Boost::Assign::List_Of
#include <         


        
2条回答
  •  不知归路
    2021-01-12 08:08

    I would try

    const map query_selector_map = map_list_of
    (x3_string_tuple("4556", "SELECT", "FILENAME"), "4556_SELECT_FILENAME");
    

    But, honestly, maybe it's easier just to have 3 separate lists of strings, and then one-by-one combine them into a tuple and add that to a map.

提交回复
热议问题