forked from boostorg/beast
Use field in basic_fields and call sites
This commit is contained in:
@@ -300,6 +300,14 @@ clear() noexcept
|
||||
list_.clear();
|
||||
}
|
||||
|
||||
template<class Allocator>
|
||||
std::size_t
|
||||
basic_fields<Allocator>::
|
||||
erase(field f)
|
||||
{
|
||||
return erase(to_string(f));
|
||||
}
|
||||
|
||||
template<class Allocator>
|
||||
std::size_t
|
||||
basic_fields<Allocator>::
|
||||
@@ -323,6 +331,14 @@ erase(string_view name)
|
||||
return n;
|
||||
}
|
||||
|
||||
template<class Allocator>
|
||||
void
|
||||
basic_fields<Allocator>::
|
||||
insert(field f, string_view value)
|
||||
{
|
||||
insert(to_string(f), value);
|
||||
}
|
||||
|
||||
template<class Allocator>
|
||||
void
|
||||
basic_fields<Allocator>::
|
||||
|
||||
Reference in New Issue
Block a user