Opened 8 years ago

Last modified 8 years ago

#10316 assigned Feature Requests

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

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

Description (last modified by viboes)

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 (1)

comment:1 by viboes, 8 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.