.. SPDX-FileCopyrightText: 2019-2020 Intel Corporation .. .. SPDX-License-Identifier: CC-BY-4.0 ================ Deduction guides ================ Where possible, constructors of ``concurrent_vector`` support class template argument deduction (since C++17): .. code:: cpp template >> concurrent_vector( InputIterator, InputIterator, const Allocator& = Allocator() ) -> concurrent_vector, Allocator>; Where type alias ``iterator_value_t`` defines as follows: .. code:: cpp template using iterator_value_t = typename std::iterator_traits::value_type; **Example** .. code:: cpp #include #include #include int main() { std::array arr; // Deduces cv1 as tbb::concurrent_vector tbb::concurrent_vector cv1(arr.begin(), arr.end()); std::allocator alloc; // Deduces cv2 as tbb::concurrent_vector> tbb::concurrent_vector cv2(arr.begin(), arr.end(), alloc); }