-
-
Notifications
You must be signed in to change notification settings - Fork 185
Closed
Labels
featureNew feature or enhancement requestNew feature or enhancement requestimplemented in v3Fixes + features which were implemented in v3 release.Fixes + features which were implemented in v3 release.
Description
Is your feature request related to a problem? Please describe.
It seems that there's no way to replace a value in a toml::array. Currently, I'm using this code:
auto array = toml::array { 0, 1, 2, 3 };
if (array.get(0)) {
array.erase(array.cbegin());
}
array.insert(array.cbegin(), 5);Describe the solution you'd like
I would like a way to easily replace a value, something like operator[] in std::vector:
auto stdVector = std::vector { 0, 1, 2, 3 };
stdVector[0] = 5;Additional context
None
Metadata
Metadata
Assignees
Labels
featureNew feature or enhancement requestNew feature or enhancement requestimplemented in v3Fixes + features which were implemented in v3 release.Fixes + features which were implemented in v3 release.