]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/seastar/include/seastar/core/circular_buffer.hh
import quincy beta 17.1.0
[ceph.git] / ceph / src / seastar / include / seastar / core / circular_buffer.hh
index d1444e4c2d0bcc87a9b20c3bc060e89f4222c3ea..710a78b4d1089958206a92bbe3a500f601de9818 100644 (file)
@@ -105,11 +105,11 @@ public:
     const T& back() const noexcept;
     void pop_front() noexcept;
     void pop_back() noexcept;
-    bool empty() const;
-    size_t size() const;
-    size_t capacity() const;
+    bool empty() const noexcept;
+    size_t size() const noexcept;
+    size_t capacity() const noexcept;
     void reserve(size_t);
-    void clear();
+    void clear() noexcept;
     T& operator[](size_t idx) noexcept;
     const T& operator[](size_t idx) const noexcept;
     template <typename Func>
@@ -229,21 +229,21 @@ circular_buffer<T, Alloc>::mask(size_t idx) const {
 template <typename T, typename Alloc>
 inline
 bool
-circular_buffer<T, Alloc>::empty() const {
+circular_buffer<T, Alloc>::empty() const noexcept {
     return _impl.begin == _impl.end;
 }
 
 template <typename T, typename Alloc>
 inline
 size_t
-circular_buffer<T, Alloc>::size() const {
+circular_buffer<T, Alloc>::size() const noexcept {
     return _impl.end - _impl.begin;
 }
 
 template <typename T, typename Alloc>
 inline
 size_t
-circular_buffer<T, Alloc>::capacity() const {
+circular_buffer<T, Alloc>::capacity() const noexcept {
     return _impl.capacity;
 }
 
@@ -260,7 +260,7 @@ circular_buffer<T, Alloc>::reserve(size_t size) {
 template <typename T, typename Alloc>
 inline
 void
-circular_buffer<T, Alloc>::clear() {
+circular_buffer<T, Alloc>::clear() noexcept {
     erase(begin(), end());
 }