mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 19:10:11 +08:00
feat: enable to edit comments through memfun
This commit is contained in:
@@ -977,16 +977,14 @@ class basic_value
|
|||||||
array_type && as_array() && noexcept {return std::move(this->array_.value());}
|
array_type && as_array() && noexcept {return std::move(this->array_.value());}
|
||||||
table_type && as_table() && noexcept {return std::move(this->table_.value());}
|
table_type && as_table() && noexcept {return std::move(this->table_.value());}
|
||||||
|
|
||||||
comment_type const& comments() const noexcept
|
|
||||||
{
|
|
||||||
return this->comments_;
|
|
||||||
}
|
|
||||||
|
|
||||||
source_location location() const
|
source_location location() const
|
||||||
{
|
{
|
||||||
return source_location(this->region_info_);
|
return source_location(this->region_info_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
comment_type const& comments() const noexcept {return this->comments_;}
|
||||||
|
comment_type& comments() noexcept {return this->comments_;}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void cleanup() noexcept
|
void cleanup() noexcept
|
||||||
|
Reference in New Issue
Block a user