問題タブ [boost-bimap]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c++ - multiset_of でバイマップ検索をブースト
Boost::bimap について質問がありますが、boost ドキュメントから回答が見つかりませんでした。
質問: withbi_map.right.find("value")
は iterator のみを取得できるように見えますが{"message1", "value"}
、 のように一致する両方のリストを取得することは可能[{"message1", "value"}, {"message2", "value"}]
ですか?
boost - boost::bimap を使用してコンパイルできない
これを に変換するのに問題がありboost::bimap
ます。コンパイルされません:
私が変える:
using MapStudentItemDesc = std::map<UINT, CString>;
に
using MapStudentItemDesc = boost::bimap<UINT, CString>;
そして、次のようにマップを宣言しました。
MapStudentItemDesc mapStudentItemDescBefore;
そして、私はそれを埋めます、例えば:
rMapStudentItems.insert({IDS_CMB_METHOD_BIBLE_READING, SMMETHOD3(eLanguage, IDS_CMB_METHOD_BIBLE_READING)});
右側の値を簡単に検索できるようにして、左側の関連するキーを取得できるようにしたかったのです。
次のようにコンパイル エラーが発生します。