================
@@ -0,0 +1,45 @@
+#ifndef _QUEUE_
+#define _QUEUE_
+
+namespace std {
+
+template <typename T, typename Container = void>
+class queue {
+public:
+  using value_type = T;
+
+  void push(const T &) {}
+  void push(T &&) {}
+
+  template <typename... Args>
+  void emplace(Args &&...args) {}
+
+  T &front();
+  const T &front() const;
+  T &back();
+  const T &back() const;
+
+  bool empty() const;
+  size_t size() const;
----------------
zeyi2 wrote:

Nit: seems that we didn't define `size_t` in the header? If we only include 
`queue` (though rare) the test could fail?

https://github.com/llvm/llvm-project/pull/186669
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to