*: add "noexcept" to many, many function prototypes
This eliminates some overhead, because the compiler doesn't need to consider these functions throwing.
This commit is contained in:
@@ -50,7 +50,7 @@ AllocatedSocketAddress::operator=(SocketAddress src)
|
||||
}
|
||||
|
||||
void
|
||||
AllocatedSocketAddress::SetSize(size_type new_size)
|
||||
AllocatedSocketAddress::SetSize(size_type new_size) noexcept
|
||||
{
|
||||
if (size == new_size)
|
||||
return;
|
||||
@@ -63,7 +63,7 @@ AllocatedSocketAddress::SetSize(size_type new_size)
|
||||
#ifdef HAVE_UN
|
||||
|
||||
void
|
||||
AllocatedSocketAddress::SetLocal(const char *path)
|
||||
AllocatedSocketAddress::SetLocal(const char *path) noexcept
|
||||
{
|
||||
const bool is_abstract = *path == '@';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user