12 Jan
2016
12 Jan
'16
8:55 p.m.
AMDG On 01/12/2016 01:09 PM, Niall Douglas wrote:
In the prototype https://svn.boost.org/trac/boost/wiki/SoC2016 at https://goo.gl/1CQAuQ I claim "Even with all of Boost's facilities [1] and using C++ 14, this program represents the currently best available method of implementing a static constant associative map of keys to values" and you can find either the code at the link or pasted below.
Can I quickly check here if that claim is true? Is there a better way than my example program?
<snip> int main(void) { { // Calls malloc() at least 7 times
If malloc is your biggest concern, try boost::container::flat_map.
static const std::map
to_weekday1 = string_to_weekday; <snip>
In Christ, Steven Watanabe