|
C++17 (also called C++1z) is the informal name for the future revision of the C++ ISO/IEC standard. The specification for the C++17 revision is speculated to be finished in 2017. ==Expected features== Since the specification for C++17 is just beginning, the following list is just a start. Many features will certainly be added in the next years. *Addition of a default text message for static_assert *Removal of trigraphs〔(【引用サイトリンク】url=http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2014/n3981.html )〕〔(IBM comment on preparing for a Trigraph-adverse future in C++17 ), IBM paper N4210, 2014-10-10. Authors: Michael Wong, Hubert Tong, Rajan Bhakta, Derek Inglis〕 *Allow typename in a template template parameter*New rules for auto deduction from braced-init-list* std::uncaught_exceptions , as a replacement of std::uncaught_exception *Nested namespace definition〔 *Attributes for namespaces and enumerators〔 *UTF-8 character literals〔 *Constant evaluation for all non-type template arguments〔 *Folding expressions〔 *New insertion functions for std::map and std::unordered_map *Uniform container access〔 *Definition of "Contiguous Iterators"〔 *Removal of some deprecated types and functions like std::auto_ptr , std::random_shuffle or old function adaptors〔*Concepts, providing "specification and checking of constraints on template arguments". *Unified call syntax.〔 * A network library based on boost::asio * A file system library based on boost::filesystem In an interview, Bjarne Stroustrup, designer and original implementor of C++, lists new features that could make it into C++17.〔http://www.infoq.com/news/2015/04/stroustrup-cpp17-interview〕 Here are some of his preferred features: * modules to improve locality and compile time; * contracts to improve specification; * type-safe unions, probably based on functional-programming style pattern matching; * concepts * ranges * uniform call syntax to simplify the specification and use of template libraries; * co-routines, i.e., resumable functions; * SIMD vector to better exploit modern hardware. 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「C++17」の詳細全文を読む スポンサード リンク
|