From edad3d533217a4bb4876ec11e75271dae1e4e34a Mon Sep 17 00:00:00 2001 From: Hans Dembinski Date: Mon, 13 May 2019 21:18:59 +0200 Subject: [PATCH] clang-format --- include/boost/histogram/unlimited_storage.hpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/include/boost/histogram/unlimited_storage.hpp b/include/boost/histogram/unlimited_storage.hpp index 6b0d47f9..6d641dd6 100644 --- a/include/boost/histogram/unlimited_storage.hpp +++ b/include/boost/histogram/unlimited_storage.hpp @@ -38,23 +38,19 @@ struct requires_arithmetic {}; template using next_type = mp11::mp_at_c::value + 1)>; -template +template class construct_guard { public: using pointer = typename std::allocator_traits::pointer; construct_guard(Allocator& a, pointer p, std::size_t n) noexcept - : a_(a), p_(p), n_(n) {} + : a_(a), p_(p), n_(n) {} ~construct_guard() { - if (p_) { - a_.deallocate(p_, n_); - } + if (p_) { a_.deallocate(p_, n_); } } - void release() { - p_ = pointer(); - } + void release() { p_ = pointer(); } construct_guard(const construct_guard&) = delete; construct_guard& operator=(const construct_guard&) = delete;