Skip to content

Commit 50dfabc

Browse files
Minor style changes from Lou's code
1 parent 2d3de43 commit 50dfabc

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

include/queue/wait_queue.hpp

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ class wait_queue {
192192
*/
193193
wait_queue()
194194
// noexcept(std::is_nothrow_constructible<Container>::value)
195-
: m_stop_src(std::stop_source{}), m_stop_tok((*m_stop_src).get_token())
196-
{
195+
: m_stop_src(std::stop_source{}), m_stop_tok((*m_stop_src).get_token()) {
197196
assert(empty());
198197
assert(size() == size_type(0));
199198
assert(!stop_requested());
@@ -210,8 +209,7 @@ class wait_queue {
210209
*/
211210
wait_queue(std::stop_token stop_tok)
212211
// noexcept(std::is_nothrow_constructible<Container>::value)
213-
: m_stop_tok(stop_tok)
214-
{
212+
: m_stop_tok(stop_tok) {
215213
assert(empty());
216214
assert(size() == size_type(0));
217215
}
@@ -242,8 +240,7 @@ class wait_queue {
242240
wait_queue(Iter beg, Iter end)
243241
// noexcept(std::is_nothrow_constructible<Container, Iter, Iter>::value)
244242
: m_stop_src(std::stop_source{}), m_stop_tok((*m_stop_src).get_token()),
245-
m_data_queue(beg, end)
246-
{
243+
m_data_queue(beg, end) {
247244
assert(empty() == (beg == end));
248245
assert((size() == size_type(0)) == (beg == end)); // std::distance constrains beg, end.
249246
}
@@ -264,8 +261,7 @@ class wait_queue {
264261
template <typename Iter>
265262
wait_queue(std::stop_token stop_tok, Iter beg, Iter end)
266263
// noexcept(std::is_nothrow_constructible<Container, Iter, Iter>::value)
267-
: m_stop_tok(stop_tok), m_data_queue(beg, end)
268-
{
264+
: m_stop_tok(stop_tok), m_data_queue(beg, end) {
269265
assert(empty() == (beg == end));
270266
assert((size() == size_type(0)) == (beg == end)); // std::distance constrains beg, end.
271267
}
@@ -295,8 +291,7 @@ class wait_queue {
295291
wait_queue(size_type sz)
296292
// noexcept(std::is_nothrow_constructible<Container, size_type>::value)
297293
: m_stop_src(std::stop_source{}), m_stop_tok((*m_stop_src).get_token()),
298-
m_data_queue(sz)
299-
{
294+
m_data_queue(sz) {
300295
assert((sz != size_type(0)) || empty());
301296
assert((size() == size_type(0)) || (size() == sz));
302297
}
@@ -315,8 +310,7 @@ class wait_queue {
315310
*/
316311
wait_queue(std::stop_token stop_tok, size_type sz)
317312
// noexcept(std::is_nothrow_constructible<Container, size_type>::value)
318-
: m_stop_tok((*m_stop_src).get_token()), m_data_queue(sz)
319-
{
313+
: m_stop_tok((*m_stop_src).get_token()), m_data_queue(sz) {
320314
assert((sz != size_type(0)) || empty());
321315
assert((size() == size_type(0)) || (size() == sz));
322316
}

0 commit comments

Comments
 (0)