diff --git a/src/groups/mqb/mqba/mqba_clientsession.cpp b/src/groups/mqb/mqba/mqba_clientsession.cpp index d6d8d29f59..5455411af8 100644 --- a/src/groups/mqb/mqba/mqba_clientsession.cpp +++ b/src/groups/mqb/mqba/mqba_clientsession.cpp @@ -188,6 +188,7 @@ #include #include #include +#include #include #include #include @@ -1079,7 +1080,7 @@ void ClientSession::finishCheckUnconfirmedDispatched( mwcu::WeakMemFnUtil::weakMemFn(&ClientSession::checkUnconfirmed, d_self.acquireWeak()), shutdownCtx, - mwcu::NoOp())); + bdlf::noOp)); } void ClientSession::closeChannel() diff --git a/src/groups/mwc/mwcu/doc/mwcu.txt b/src/groups/mwc/mwcu/doc/mwcu.txt index 92c950d17b..7e65f64806 100644 --- a/src/groups/mwc/mwcu/doc/mwcu.txt +++ b/src/groups/mwc/mwcu/doc/mwcu.txt @@ -9,7 +9,7 @@ reused through various applications. /Hierarchical Synopsis /--------------------- -The 'mwcu' package currently has 20 components having 2 level of physical +The 'mwcu' package currently has 19 components having 2 level of physical dependency. The list below shows the hierarchal ordering of the components. .. 2. mwcu_blobiterator @@ -22,7 +22,6 @@ dependency. The list below shows the hierarchal ordering of the components. mwcu_atomicvalidator mwcu_blob mwcu_memoutstream - mwcu_noop mwcu_objectplaceholder mwcu_outstreamformatsaver mwcu_sharedresource @@ -58,9 +57,6 @@ dependency. The list below shows the hierarchal ordering of the components. : 'mwcu_objectplaceholder': : Provide a placeholder for any object. : -: 'mwcu_noop': -: Provide a no-op functor taking an arbitrary number of arguments. -: : 'mwcu_operationchain': : Provide a mechanism to serialize execution of async operations. : diff --git a/src/groups/mwc/mwcu/mwcu_noop.cpp b/src/groups/mwc/mwcu/mwcu_noop.cpp deleted file mode 100644 index 55233ec33f..0000000000 --- a/src/groups/mwc/mwcu/mwcu_noop.cpp +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright 2022-2023 Bloomberg Finance L.P. -// SPDX-License-Identifier: Apache-2.0 -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// mwcu_noop.cpp -*-C++-*- -#include - -#include - -namespace BloombergLP { -namespace mwcu { - -} // close package namespace -} // close enterprise namespace diff --git a/src/groups/mwc/mwcu/mwcu_noop.h b/src/groups/mwc/mwcu/mwcu_noop.h deleted file mode 100644 index 645e4023ff..0000000000 --- a/src/groups/mwc/mwcu/mwcu_noop.h +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright 2022-2023 Bloomberg Finance L.P. -// SPDX-License-Identifier: Apache-2.0 -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// mwcu_noop.h -*-C++-*- -#ifndef INCLUDED_MWCU_NOOP -#define INCLUDED_MWCU_NOOP - -//@PURPOSE: Provide a no-op functor taking an arbitrary number of arguments. -// -//@CLASSES: -// mwcu::NoOp: a no-op functor. -// -//@DESCRIPTION: -// This component provides a no-op functor, 'mwcu::NoOp', taking an arbitrary -// number of template arguments (up to 9 in C++03) and doing nothing. - -// MWC - -// BDE -#include -#include -#include -#include - -#if BSLS_COMPILERFEATURES_SIMULATE_CPP11_FEATURES -// Include version that can be compiled with C++03 -// Generated on Wed Jun 29 04:03:13 2022 -// Command line: sim_cpp11_features.pl mwcu_noop.h -#define COMPILING_MWCU_NOOP_H -#include -#undef COMPILING_MWCU_NOOP_H -#else - -namespace BloombergLP { -namespace mwcu { - -// ========== -// class NoOp -// ========== - -/// A no-op functor. -class NoOp { - public: - // TYPES - - /// Defines the result type of the call operator. - typedef void ResultType; - - public: - // ACCESSORS -#if !BSLS_COMPILERFEATURES_SIMULATE_CPP11_FEATURES // $var-args=9 - - /// Do nothing. - template - void operator()(const ARGS&...) const BSLS_KEYWORD_NOEXCEPT; - -#endif - - public: - // TRAITS - BSLMF_NESTED_TRAIT_DECLARATION(NoOp, bsl::is_trivially_copyable) -}; - -// ============================================================================ -// INLINE DEFINITIONS -// ============================================================================ - -// ---------- -// class NoOp -// ---------- - -// ACCESSORS -#if !BSLS_COMPILERFEATURES_SIMULATE_CPP11_FEATURES // $var-args=9 -template -inline void NoOp::operator()(const ARGS&...) const BSLS_KEYWORD_NOEXCEPT -{ - // NOTHING -} -#endif - -} // close package namespace -} // close enterprise namespace - -#endif // End C++11 code - -#endif diff --git a/src/groups/mwc/mwcu/mwcu_noop_cpp03.cpp b/src/groups/mwc/mwcu/mwcu_noop_cpp03.cpp deleted file mode 100644 index b1190de44b..0000000000 --- a/src/groups/mwc/mwcu/mwcu_noop_cpp03.cpp +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022-2023 Bloomberg Finance L.P. -// SPDX-License-Identifier: Apache-2.0 -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// mwcu_noop_cpp03.cpp -*-C++-*- - -// Automatically generated file. **DO NOT EDIT** - -// Generated on Thu Jul 14 05:56:02 2022 -// Command line: sim_cpp11_features.pl mwcu_noop.cpp - -#define INCLUDED_MWCU_NOOP_CPP03 // Disable inclusion -#include // Pro-forma #include - -// Empty file except when compiling mwcu_noop.cpp -#ifdef COMPILING_MWCU_NOOP_CPP - -// No C++03 Expansion - -#endif // defined(COMPILING_MWCU_NOOP_CPP) - -// ---------------------------------------------------------------------------- -// Copyright 2022-2023 Bloomberg Finance L.P. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ----------------------------- END-OF-FILE ---------------------------------- diff --git a/src/groups/mwc/mwcu/mwcu_noop_cpp03.h b/src/groups/mwc/mwcu/mwcu_noop_cpp03.h deleted file mode 100644 index ff6a2fa88e..0000000000 --- a/src/groups/mwc/mwcu/mwcu_noop_cpp03.h +++ /dev/null @@ -1,380 +0,0 @@ -// Copyright 2022-2023 Bloomberg Finance L.P. -// SPDX-License-Identifier: Apache-2.0 -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// mwcu_noop_cpp03.h -*-C++-*- - -// Automatically generated file. **DO NOT EDIT** - -#ifndef INCLUDED_MWCU_NOOP_CPP03 -#define INCLUDED_MWCU_NOOP_CPP03 - -//@PURPOSE: Provide C++03 implementation for mwcu_noop.h -// -//@CLASSES: See mwcu_noop.h for list of classes -// -//@SEE_ALSO: mwcu_noop -// -//@DESCRIPTION: This component is the C++03 translation of a C++11 component, -// generated by the 'sim_cpp11_features.pl' program. If the original header -// contains any specially delimited regions of C++11 code, then this generated -// file contains the C++03 equivalent, i.e., with variadic templates expanded -// and rvalue-references replaced by 'bslmf::MovableRef' objects. The header -// code in this file is designed to be '#include'd into the original header -// when compiling with a C++03 compiler. If there are no specially delimited -// regions of C++11 code, then this header contains no code and is not -// '#include'd in the original header. -// -// Generated on Wed Jun 29 04:03:13 2022 -// Command line: sim_cpp11_features.pl mwcu_noop.h - -#ifdef COMPILING_MWCU_NOOP_H - -namespace BloombergLP { -namespace mwcu { - -// ========== -// class NoOp -// ========== - -class NoOp { - // A no-op functor. - - public: - // TYPES - typedef void ResultType; - // Defines the result type of the call operator. - - public: - // ACCESSORS -#if BSLS_COMPILERFEATURES_SIMULATE_VARIADIC_TEMPLATES -// {{{ BEGIN GENERATED CODE -// Command line: sim_cpp11_features.pl mwcu_noop.h -#ifndef MWCU_NOOP_VARIADIC_LIMIT -#define MWCU_NOOP_VARIADIC_LIMIT 9 -#endif -#ifndef MWCU_NOOP_VARIADIC_LIMIT_A -#define MWCU_NOOP_VARIADIC_LIMIT_A MWCU_NOOP_VARIADIC_LIMIT -#endif -#if MWCU_NOOP_VARIADIC_LIMIT_A >= 0 - void operator()() const BSLS_KEYWORD_NOEXCEPT; -#endif // MWCU_NOOP_VARIADIC_LIMIT_A >= 0 - -#if MWCU_NOOP_VARIADIC_LIMIT_A >= 1 - template - void operator()(const ARGS_1&) const BSLS_KEYWORD_NOEXCEPT; -#endif // MWCU_NOOP_VARIADIC_LIMIT_A >= 1 - -#if MWCU_NOOP_VARIADIC_LIMIT_A >= 2 - template - void operator()(const ARGS_1&, const ARGS_2&) const BSLS_KEYWORD_NOEXCEPT; -#endif // MWCU_NOOP_VARIADIC_LIMIT_A >= 2 - -#if MWCU_NOOP_VARIADIC_LIMIT_A >= 3 - template - void operator()(const ARGS_1&, - const ARGS_2&, - const ARGS_3&) const BSLS_KEYWORD_NOEXCEPT; -#endif // MWCU_NOOP_VARIADIC_LIMIT_A >= 3 - -#if MWCU_NOOP_VARIADIC_LIMIT_A >= 4 - template - void operator()(const ARGS_1&, - const ARGS_2&, - const ARGS_3&, - const ARGS_4&) const BSLS_KEYWORD_NOEXCEPT; -#endif // MWCU_NOOP_VARIADIC_LIMIT_A >= 4 - -#if MWCU_NOOP_VARIADIC_LIMIT_A >= 5 - template - void operator()(const ARGS_1&, - const ARGS_2&, - const ARGS_3&, - const ARGS_4&, - const ARGS_5&) const BSLS_KEYWORD_NOEXCEPT; -#endif // MWCU_NOOP_VARIADIC_LIMIT_A >= 5 - -#if MWCU_NOOP_VARIADIC_LIMIT_A >= 6 - template - void operator()(const ARGS_1&, - const ARGS_2&, - const ARGS_3&, - const ARGS_4&, - const ARGS_5&, - const ARGS_6&) const BSLS_KEYWORD_NOEXCEPT; -#endif // MWCU_NOOP_VARIADIC_LIMIT_A >= 6 - -#if MWCU_NOOP_VARIADIC_LIMIT_A >= 7 - template - void operator()(const ARGS_1&, - const ARGS_2&, - const ARGS_3&, - const ARGS_4&, - const ARGS_5&, - const ARGS_6&, - const ARGS_7&) const BSLS_KEYWORD_NOEXCEPT; -#endif // MWCU_NOOP_VARIADIC_LIMIT_A >= 7 - -#if MWCU_NOOP_VARIADIC_LIMIT_A >= 8 - template - void operator()(const ARGS_1&, - const ARGS_2&, - const ARGS_3&, - const ARGS_4&, - const ARGS_5&, - const ARGS_6&, - const ARGS_7&, - const ARGS_8&) const BSLS_KEYWORD_NOEXCEPT; -#endif // MWCU_NOOP_VARIADIC_LIMIT_A >= 8 - -#if MWCU_NOOP_VARIADIC_LIMIT_A >= 9 - template - void operator()(const ARGS_1&, - const ARGS_2&, - const ARGS_3&, - const ARGS_4&, - const ARGS_5&, - const ARGS_6&, - const ARGS_7&, - const ARGS_8&, - const ARGS_9&) const BSLS_KEYWORD_NOEXCEPT; -#endif // MWCU_NOOP_VARIADIC_LIMIT_A >= 9 - -#else - // The generated code below is a workaround for the absence of perfect - // forwarding in some compilers. - template - void operator()(const ARGS&...) const BSLS_KEYWORD_NOEXCEPT; - -// }}} END GENERATED CODE -#endif - - public: - // TRAITS - BSLMF_NESTED_TRAIT_DECLARATION(NoOp, bsl::is_trivially_copyable) -}; - -// ============================================================================ -// INLINE DEFINITIONS -// ============================================================================ - -// ---------- -// class NoOp -// ---------- - -// ACCESSORS -#if BSLS_COMPILERFEATURES_SIMULATE_VARIADIC_TEMPLATES -// {{{ BEGIN GENERATED CODE -// Command line: sim_cpp11_features.pl mwcu_noop.h -#ifndef MWCU_NOOP_VARIADIC_LIMIT -#define MWCU_NOOP_VARIADIC_LIMIT 9 -#endif -#ifndef MWCU_NOOP_VARIADIC_LIMIT_B -#define MWCU_NOOP_VARIADIC_LIMIT_B MWCU_NOOP_VARIADIC_LIMIT -#endif -#if MWCU_NOOP_VARIADIC_LIMIT_B >= 0 -inline void NoOp::operator()() const BSLS_KEYWORD_NOEXCEPT -{ -} -#endif // MWCU_NOOP_VARIADIC_LIMIT_B >= 0 - -#if MWCU_NOOP_VARIADIC_LIMIT_B >= 1 -template -inline void NoOp::operator()(const ARGS_1&) const BSLS_KEYWORD_NOEXCEPT -{ -} -#endif // MWCU_NOOP_VARIADIC_LIMIT_B >= 1 - -#if MWCU_NOOP_VARIADIC_LIMIT_B >= 2 -template -inline void NoOp::operator()(const ARGS_1&, - const ARGS_2&) const BSLS_KEYWORD_NOEXCEPT -{ -} -#endif // MWCU_NOOP_VARIADIC_LIMIT_B >= 2 - -#if MWCU_NOOP_VARIADIC_LIMIT_B >= 3 -template -inline void NoOp::operator()(const ARGS_1&, - const ARGS_2&, - const ARGS_3&) const BSLS_KEYWORD_NOEXCEPT -{ -} -#endif // MWCU_NOOP_VARIADIC_LIMIT_B >= 3 - -#if MWCU_NOOP_VARIADIC_LIMIT_B >= 4 -template -inline void NoOp::operator()(const ARGS_1&, - const ARGS_2&, - const ARGS_3&, - const ARGS_4&) const BSLS_KEYWORD_NOEXCEPT -{ -} -#endif // MWCU_NOOP_VARIADIC_LIMIT_B >= 4 - -#if MWCU_NOOP_VARIADIC_LIMIT_B >= 5 -template -inline void NoOp::operator()(const ARGS_1&, - const ARGS_2&, - const ARGS_3&, - const ARGS_4&, - const ARGS_5&) const BSLS_KEYWORD_NOEXCEPT -{ -} -#endif // MWCU_NOOP_VARIADIC_LIMIT_B >= 5 - -#if MWCU_NOOP_VARIADIC_LIMIT_B >= 6 -template -inline void NoOp::operator()(const ARGS_1&, - const ARGS_2&, - const ARGS_3&, - const ARGS_4&, - const ARGS_5&, - const ARGS_6&) const BSLS_KEYWORD_NOEXCEPT -{ -} -#endif // MWCU_NOOP_VARIADIC_LIMIT_B >= 6 - -#if MWCU_NOOP_VARIADIC_LIMIT_B >= 7 -template -inline void NoOp::operator()(const ARGS_1&, - const ARGS_2&, - const ARGS_3&, - const ARGS_4&, - const ARGS_5&, - const ARGS_6&, - const ARGS_7&) const BSLS_KEYWORD_NOEXCEPT -{ -} -#endif // MWCU_NOOP_VARIADIC_LIMIT_B >= 7 - -#if MWCU_NOOP_VARIADIC_LIMIT_B >= 8 -template -inline void NoOp::operator()(const ARGS_1&, - const ARGS_2&, - const ARGS_3&, - const ARGS_4&, - const ARGS_5&, - const ARGS_6&, - const ARGS_7&, - const ARGS_8&) const BSLS_KEYWORD_NOEXCEPT -{ -} -#endif // MWCU_NOOP_VARIADIC_LIMIT_B >= 8 - -#if MWCU_NOOP_VARIADIC_LIMIT_B >= 9 -template -inline void NoOp::operator()(const ARGS_1&, - const ARGS_2&, - const ARGS_3&, - const ARGS_4&, - const ARGS_5&, - const ARGS_6&, - const ARGS_7&, - const ARGS_8&, - const ARGS_9&) const BSLS_KEYWORD_NOEXCEPT -{ -} -#endif // MWCU_NOOP_VARIADIC_LIMIT_B >= 9 - -#else -// The generated code below is a workaround for the absence of perfect -// forwarding in some compilers. -template -inline void NoOp::operator()(const ARGS&...) const BSLS_KEYWORD_NOEXCEPT -{ -} -// }}} END GENERATED CODE -#endif - -} // close package namespace -} // close enterprise namespace - -#else // if ! defined(DEFINED_MWCU_NOOP_H) -#error Not valid except when included from mwcu_noop.h -#endif // ! defined(COMPILING_MWCU_NOOP_H) - -#endif // ! defined(INCLUDED_MWCU_NOOP_CPP03) - -// ---------------------------------------------------------------------------- -// Copyright 2022-2023 Bloomberg Finance L.P. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ----------------------------- END-OF-FILE ---------------------------------- diff --git a/src/groups/mwc/mwcu/mwcu_operationchain.h b/src/groups/mwc/mwcu/mwcu_operationchain.h index 1728890855..7adbe23e9f 100644 --- a/src/groups/mwc/mwcu/mwcu_operationchain.h +++ b/src/groups/mwc/mwcu/mwcu_operationchain.h @@ -161,10 +161,10 @@ //.. // MWC -#include #include // BDE +#include #include #include #include @@ -193,7 +193,7 @@ #if BSLS_COMPILERFEATURES_SIMULATE_CPP11_FEATURES // Include version that can be compiled with C++03 -// Generated on Wed Jun 19 15:52:47 2024 +// Generated on Wed Jul 17 13:47:07 2024 // Command line: sim_cpp11_features.pl mwcu_operationchain.h #define COMPILING_MWCU_OPERATIONCHAIN_H #include @@ -254,7 +254,7 @@ struct OperationChain_IsOperationCallbackCompatible bsl::is_destructible_v > && bsl::is_move_constructible_v > && bsl::is_invocable_v >, - mwcu::NoOp> > + bdlf::NoOp> > #else : bsl::integral_constant #endif @@ -387,7 +387,7 @@ class OperationChain_Job { /// A "small" dummy functor used to help calculate the size of the /// on-stack buffer. - struct Dummy : public mwcu::NoOp { + struct Dummy : public bdlf::NoOp { void* d_padding[5]; }; @@ -602,7 +602,7 @@ class OperationChain { /// Append a link containing a single operation represented by the /// specified `opCallback` operation callback and the optionally /// specified `coCallback` completion callback to this operation chain. - /// If no completion callback is specified, use `mwcu::NoOp`. If the + /// If no completion callback is specified, use `bdlf::NoOp`. If the /// chain is started and the appended link is the first one in the /// chain, execute the single operation in the appended link /// immediately. @@ -734,7 +734,7 @@ class OperationChainLink { /// Insert an operation into this link. Specify a `opCallback` operation /// callback initiating the operation. Optionally specify a `coCallback` /// completion callback to be passed to the operation callback as a - /// parameter. If no completion callback is specified, use `mwcu::NoOp`. + /// parameter. If no completion callback is specified, use `bdlf::NoOp`. /// /// This function meets the strong exception guarantee. If an exception /// is thrown, this function has no effect. @@ -953,7 +953,7 @@ OperationChain::appendInplace(BSLS_COMPILERFEATURES_FORWARD_REF(OP_CALLBACK) OperationChain_IsOperationCallbackCompatible::value); appendInplace(BSLS_COMPILERFEATURES_FORWARD(OP_CALLBACK, opCallback), - NoOp()); + bdlf::noOp); } template @@ -990,7 +990,7 @@ OperationChainLink::insert(BSLS_COMPILERFEATURES_FORWARD_REF(OP_CALLBACK) BSLMF_ASSERT( OperationChain_IsOperationCallbackCompatible::value); - insert(BSLS_COMPILERFEATURES_FORWARD(OP_CALLBACK, opCallback), NoOp()); + insert(BSLS_COMPILERFEATURES_FORWARD(OP_CALLBACK, opCallback), bdlf::noOp); } template diff --git a/src/groups/mwc/mwcu/mwcu_operationchain.t.cpp b/src/groups/mwc/mwcu/mwcu_operationchain.t.cpp index 060a14cfc6..6169071e67 100644 --- a/src/groups/mwc/mwcu/mwcu_operationchain.t.cpp +++ b/src/groups/mwc/mwcu/mwcu_operationchain.t.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -795,7 +796,7 @@ static void test7_chain_appendInplace(bdlmt::ThreadPool* threadPool) chain.removeAll(); // append-inplace a link (use second overload) - chain.appendInplace(NullOperation(), mwcu::NoOp()); + chain.appendInplace(NullOperation(), bdlf::noOp); // one link appended with one operation in it ASSERT_EQ(chain.numLinks(), 1u); @@ -1295,7 +1296,7 @@ static void test14_link_insert() // insert again (use second overload) for (unsigned i = 0; i < k_NUM_OPERATIONS; ++i) { - link.insert(NullOperation(), mwcu::NoOp()); + link.insert(NullOperation(), bdlf::noOp); ASSERT_EQ(link.numOperations(), i + 1); } } diff --git a/src/groups/mwc/mwcu/mwcu_operationchain_cpp03.h b/src/groups/mwc/mwcu/mwcu_operationchain_cpp03.h index 9c6f8b06cd..b401b5771b 100644 --- a/src/groups/mwc/mwcu/mwcu_operationchain_cpp03.h +++ b/src/groups/mwc/mwcu/mwcu_operationchain_cpp03.h @@ -1,4 +1,4 @@ -// Copyright 2022-2023 Bloomberg Finance L.P. +// Copyright 2021-2023 Bloomberg Finance L.P. // SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -36,7 +36,7 @@ // regions of C++11 code, then this header contains no code and is not // '#include'd in the original header. // -// Generated on Wed Jun 19 15:52:47 2024 +// Generated on Wed Jul 17 13:47:07 2024 // Command line: sim_cpp11_features.pl mwcu_operationchain.h #ifdef COMPILING_MWCU_OPERATIONCHAIN_H @@ -95,7 +95,7 @@ struct OperationChain_IsOperationCallbackCompatible bsl::is_destructible_v > && bsl::is_move_constructible_v > && bsl::is_invocable_v >, - mwcu::NoOp> > + bdlf::NoOp> > #else : bsl::integral_constant #endif @@ -353,7 +353,7 @@ class OperationChain_Job { /// A "small" dummy functor used to help calculate the size of the /// on-stack buffer. - struct Dummy : public mwcu::NoOp { + struct Dummy : public bdlf::NoOp { void* d_padding[5]; }; @@ -568,7 +568,7 @@ class OperationChain { /// Append a link containing a single operation represented by the /// specified `opCallback` operation callback and the optionally /// specified `coCallback` completion callback to this operation chain. - /// If no completion callback is specified, use `mwcu::NoOp`. If the + /// If no completion callback is specified, use `bdlf::NoOp`. If the /// chain is started and the appended link is the first one in the /// chain, execute the single operation in the appended link /// immediately. @@ -700,7 +700,7 @@ class OperationChainLink { /// Insert an operation into this link. Specify a `opCallback` operation /// callback initiating the operation. Optionally specify a `coCallback` /// completion callback to be passed to the operation callback as a - /// parameter. If no completion callback is specified, use `mwcu::NoOp`. + /// parameter. If no completion callback is specified, use `bdlf::NoOp`. /// /// This function meets the strong exception guarantee. If an exception /// is thrown, this function has no effect. @@ -1214,7 +1214,7 @@ OperationChain::appendInplace(BSLS_COMPILERFEATURES_FORWARD_REF(OP_CALLBACK) OperationChain_IsOperationCallbackCompatible::value); appendInplace(BSLS_COMPILERFEATURES_FORWARD(OP_CALLBACK, opCallback), - NoOp()); + bdlf::noOp); } template @@ -1251,7 +1251,7 @@ OperationChainLink::insert(BSLS_COMPILERFEATURES_FORWARD_REF(OP_CALLBACK) BSLMF_ASSERT( OperationChain_IsOperationCallbackCompatible::value); - insert(BSLS_COMPILERFEATURES_FORWARD(OP_CALLBACK, opCallback), NoOp()); + insert(BSLS_COMPILERFEATURES_FORWARD(OP_CALLBACK, opCallback), bdlf::noOp); } template @@ -1288,19 +1288,3 @@ inline void mwcu::swap(OperationChainLink& lhs, #endif // ! defined(COMPILING_MWCU_OPERATIONCHAIN_H) #endif // ! defined(INCLUDED_MWCU_OPERATIONCHAIN_CPP03) - -// ---------------------------------------------------------------------------- -// Copyright 2024 Bloomberg Finance L.P. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ----------------------------- END-OF-FILE ---------------------------------- diff --git a/src/groups/mwc/mwcu/package/mwcu.mem b/src/groups/mwc/mwcu/package/mwcu.mem index 58662f88c4..218e330453 100644 --- a/src/groups/mwc/mwcu/package/mwcu.mem +++ b/src/groups/mwc/mwcu/package/mwcu.mem @@ -5,8 +5,6 @@ mwcu_blob mwcu_blobiterator mwcu_blobobjectproxy mwcu_memoutstream -mwcu_noop -mwcu_noop_cpp03 mwcu_objectplaceholder mwcu_objectplaceholder_cpp03 mwcu_operationchain