doc: update std::visit arguments

This commit is contained in:
ToruNiina
2025-01-13 18:28:08 +09:00
parent 1e7bea87b6
commit 02d1f0b9e0
2 changed files with 6 additions and 20 deletions

View File

@@ -14,17 +14,9 @@ In `visit.hpp`, `toml::visit` is defined.
```cpp
namespace toml
{
template<typename Visitor, typename TC>
template<typename Visitor, typename ... Args>
/* Return value when Visitor is called with a value of basic_value<TC> */
visit(Visitor&& visitor, const basic_value<TC>& v);
template<typename Visitor, typename TC>
/* Return value when Visitor is called with a value of basic_value<TC> */
visit(Visitor&& visitor, basic_value<TC>& v);
template<typename Visitor, typename TC>
/* Return value when Visitor is called with a value of basic_value<TC> */
visit(Visitor&& visitor, basic_value<TC>&& v);
visit(Visitor&& visitor, Args&& ... args);
}
```