A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://timsong-cpp.github.io/cppwp/n4659/dcl.type.class.deduct below:

[dcl.type.class.deduct]

10 Declarations [dcl.dcl] 10.1 Specifiers [dcl.spec] 10.1.7 Type specifiers [dcl.type] 10.1.7.5 Deduced class template specialization types [dcl.type.class.deduct]

[Example:

template<class T> struct container {
    container(T t) {}
    template<class Iter> container(Iter beg, Iter end);
};
template<class Iter>
container(Iter b, Iter e) -> container<typename std::iterator_traits<Iter>::value_type>;
std::vector<double> v = { /* ... */ };

container c(7);                         auto d = container(v.begin(), v.end()); container e{5, 6};                      

end example]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4