Opened 8 years ago

Last modified 8 years ago

#10316 assigned Feature Requests

Thread: add subscription operator if the value provide it. — at Initial Version

Reported by: mjklaim@… Owned by: Anthony Williams
Milestone: To Be Determined Component: thread
Version: Boost 1.55.0 Severity: Cosmetic
Keywords: Cc:

Description

I would like to be able to do

typedef boost::synchronized_value< boost::container::flat_map<int, int> > ValueIndex;

ValueIndex index; index[0] = 1;

and would expect that last line to be equivalent to

auto locked_index = index.synchronize(); (*locked_index)[0] = 1;

I'm not totally sure it's possible to do but it would help.

Change History (0)

Note: See TracTickets for help on using tickets.