P
Philipp Kraus
Hi,
I'm using a std::map and I need two values in it. The key is a
std::string value and the value of the std::map must have two values
(named lower and upper).
Should I use a struct like
struct range {
T lower;
T upper;
range( const T& a, const T& b) :
lower(a), upper(b) {}
};
std::map< std::string, range > x
Is there a more efficent way?
Thanks for help
Phil
I'm using a std::map and I need two values in it. The key is a
std::string value and the value of the std::map must have two values
(named lower and upper).
Should I use a struct like
struct range {
T lower;
T upper;
range( const T& a, const T& b) :
lower(a), upper(b) {}
};
std::map< std::string, range > x
Is there a more efficent way?
Thanks for help
Phil