We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 576365c commit 42cc3e0Copy full SHA for 42cc3e0
src/m5_utility/container/circular_buffer.cpp
@@ -0,0 +1,15 @@
1
+/*
2
+ * SPDX-FileCopyrightText: 2025 M5Stack Technology CO LTD
3
+ *
4
+ * SPDX-License-Identifier: MIT
5
+ */
6
+/*!
7
+ @file circular_buffer.cpp
8
+ @brief Circular buffer with STL-like interface
9
+*/
10
+#include "circular_buffer.hpp"
11
+#if __cplusplus >= 201703L
12
+#pragma message "Using std::optional"
13
+#else
14
+#pragma message "Using m5::stl::optional"
15
+#endif
src/m5_utility/container/circular_buffer.hpp
@@ -15,10 +15,8 @@
#include <iterator>
16
#include <cassert>
17
#if __cplusplus >= 201703L
18
-#pragma message "Using std::optional"
19
#include <optional>
20
#else
21
-#pragma message "Using m5::stl::optional"
22
#include "../stl/optional.hpp"
23
#endif
24
0 commit comments