クラスから のような読み取り専用アダプターを返したいのですboost::iterator_range
が、std::map
とサポートoperator[]
(つまり ではないboost::iterator_range<std::pair<key_type, value_type>>
) のようなものは存在しますか?
例えば
class processor
{
public:
// boost::map_view is made up.
// The data member could be std::map boost::multimap etc...
virtual boost::map_view<std::string, boost::signals2::signal<int>> outputs() = 0;
};