Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 505611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:36:59+00:00 2026-05-13T06:36:59+00:00

I have been using a using a boost tuple as the value in an

  • 0

I have been using a using a boost tuple as the value in an STL map.
Up until now, I only had to construct the tuple and insert into the map and at a later stage retrieve the values.

Now I need to be able to change the tuple in the map. Is this possible, or have I run into the one place you should’nt be using tuples instead of structs.

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T06:36:59+00:00Added an answer on May 13, 2026 at 6:36 am

    As long as the tuple is the map value and not the key, the tuple is perfectly mutable:

    http://www.boost.org/doc/libs/1_41_0/libs/tuple/doc/tuple_users_guide.html#accessing_elements

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using Boost (the header only library part) for sometime now. I
I have been looking into using Boost.Interprocess to create a disk-backed data structure. The
I have been using Boost 1.36 for a while without any problems. Had to
I have been using echo $.sprintf(%01\$.2f,$numvar); for my USD formatting, but I only copied
I have been using a boost framework from the link below for my iPhone
I have been trying to set the TTL on ICMP packets using the boost::asio::ip::unicast::hops
I am using boost's threading library and have run into linking issues in Visual
I have been successfully using boost::spirit::qi to to parse a stream consisting of the
Using boost::python , I have been able to wrap a class ( Node )
Here is my dilemma: I really like lambda and have been using Boost.Fusion and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.