GitLab Commit is coming up on August 3-4. Learn how to innovate together using GitLab, the DevOps platform. Register for free: gitlabcommitvirtual2021.com

Commit 0d840a43 authored by Markus Mohrhard's avatar Markus Mohrhard
Browse files

add a way to assert the correct sort order for sorted_string_map

parent 79413256
......@@ -64,7 +64,7 @@ sorted_string_map<_ValueT>::sorted_string_map(const entry* entries, size_type en
m_entry_size(entry_size),
m_entry_end(m_entries+m_entry_size)
{
#ifdef _GLIBCXX_DEBUG
#if defined(_GLIBCXX_DEBUG) || defined(MDDS_ASSERT_STRING_MAP)
assert(std::is_sorted(m_entries, m_entry_end, detail::compare<_ValueT>));
#endif
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment