Skip to content

Commit

Permalink
Add c++17 deduction guides
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Jan 18, 2025
1 parent d565992 commit b8bb3b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/xtd.core/include/xtd/collections/generic/dictionary.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1584,6 +1584,12 @@ namespace xtd {
/// @cond
// C++17 deduction guides for xtd::collections::generic::dictionary
// {
template<class key_t, class value_t>
dictionary(idictionary<key_t, value_t>) -> dictionary<key_t, value_t, helpers::hasher<key_t>, helpers::equator<key_t>, helpers::allocator<std::pair<const key_t, value_t>>>;

template<class key_t, class value_t>
dictionary(ienumerable<key_value_pair<key_t, value_t>>) -> dictionary<key_t, value_t, helpers::hasher<key_t>, helpers::equator<key_t>, helpers::allocator<std::pair<const key_t, value_t>>>;

template<class key_t, class value_t, class hasher_t = helpers::hasher<key_t>, class equator_t = helpers::equator<key_t>, class allocator_t = helpers::allocator<std::pair<const key_t, value_t>>>
dictionary(std::initializer_list<key_value_pair<key_t, value_t>>, xtd::size = 0, hasher_t = hasher_t {}, equator_t = equator_t {}, allocator_t = allocator_t {}) -> dictionary<key_t, value_t, hasher_t, equator_t, allocator_t>;

Expand Down

0 comments on commit b8bb3b3

Please sign in to comment.