// Copyright (c) 2025, QuantStack and Mamba Contributors // // Distributed under the terms of the BSD 3-Clause License. // // The full license is in the file LICENSE, distributed with this software. #ifndef MAMBA_UTIL_SYNCHRONIZED_VALUE_HPP #define MAMBA_UTIL_SYNCHRONIZED_VALUE_HPP #include #include #include #include #include #include namespace mamba::util { ///////////////////////////// // TODO: move that in a more general location // original: https://github.com/man-group/sparrow/blob/main/include/sparrow/utils/mp_utils.hpp template class U> struct is_type_instance_of : std::false_type { }; template