From 7296f51567d5db95c23247dbec116e35812df5a8 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Mon, 17 May 2021 13:33:56 -0700 Subject: Add namespace and include guard to insert_ordered.h (#3891) --- src/support/insert_ordered.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/support/insert_ordered.h') diff --git a/src/support/insert_ordered.h b/src/support/insert_ordered.h index 0a5e24ab1..5e3dec96b 100644 --- a/src/support/insert_ordered.h +++ b/src/support/insert_ordered.h @@ -14,12 +14,17 @@ * limitations under the License. */ +#ifndef wasm_support_insert_ordered_h +#define wasm_support_insert_ordered_h + #include #include #include #include "support/utilities.h" +namespace wasm { + // like std::set, except that begin() -> end() iterates in the // order that elements were added to the set (not in the order // of operator<(T, T)) @@ -134,3 +139,7 @@ template struct InsertOrderedMap { } bool operator!=(const InsertOrderedMap& other) { return !(*this == other); } }; + +} // namespace wasm + +#endif // wasm_support_insert_ordered_h -- cgit v1.2.3