add default ctor noexcept

This commit is contained in:
2019-05-10 10:06:14 +07:00
parent 519abd69a4
commit 47b24bb0ad
8 changed files with 76 additions and 8 deletions

View File

@@ -98,7 +98,9 @@ namespace flat_hpp
: key_compare(std::move(compare)) {}
};
public:
flat_map() {}
flat_map()
noexcept(std::is_nothrow_default_constructible<base_type>::value
&& std::is_nothrow_default_constructible<container_type>::value) {}
explicit flat_map(const Compare& c)
: base_type(c) {}