eb1ce45339
4 Commits
Author | SHA1 | Message | Date | |
---|---|---|---|---|
Paolo Carlini
|
660dca797a |
string_view (_S_max_size): Remove.
2013-11-19 Paolo Carlini <paolo.carlini@oracle.com> * include/experimental/string_view (_S_max_size): Remove. (basic_string_view<>::max_size): Adjust. * testsuite/experimental/string_view/capacity/1.cc: Clean-up. * testsuite/experimental/string_view/inserters/pod/10081-out.cc: Likewise. From-SVN: r205033 |
||
Edward Smith-Rowland
|
77cba5af77 |
Implement N3762 string_view: a non-owning reference to a string.
2013-11-16 Edward Smith-Rowland <3dw4rd@verizon.net> Implement N3762 string_view: a non-owning reference to a string. * include/Makefile.am: Add string_view and string_view.tcc. * include/Makefile.in: Regenerate. * include/experimental/string_view: Implement basic_string_view. * include/experimental/string_view.tcc: Implement basic_string_view. * testsuite/experimental/string_view/capacity/1.cc: New. * testsuite/experimental/string_view/cons/char/1.cc: New. * testsuite/experimental/string_view/cons/char/2.cc: New. * testsuite/experimental/string_view/cons/char/3.cc: New. * testsuite/experimental/string_view/cons/wchar_t/1.cc: New. * testsuite/experimental/string_view/cons/wchar_t/2.cc: New. * testsuite/experimental/string_view/cons/wchar_t/3.cc: New. * testsuite/experimental/string_view/element_access/char/1.cc: New. * testsuite/experimental/string_view/element_access/char/2.cc: New. * testsuite/experimental/string_view/element_access/char/empty.cc: New. * testsuite/experimental/string_view/element_access/char/front_back.cc: New. * testsuite/experimental/string_view/element_access/wchar_t/1.cc: New. * testsuite/experimental/string_view/element_access/wchar_t/2.cc: New. * testsuite/experimental/string_view/element_access/wchar_t/empty.cc: New. * testsuite/experimental/string_view/element_access/wchar_t/ front_back.cc: New. * testsuite/experimental/string_view/include.cc: New. * testsuite/experimental/string_view/inserters/char/1.cc: New. * testsuite/experimental/string_view/inserters/char/2.cc: New. * testsuite/experimental/string_view/inserters/char/3.cc: New. * testsuite/experimental/string_view/inserters/pod/10081-out.cc: New. * testsuite/experimental/string_view/inserters/wchar_t/1.cc: New. * testsuite/experimental/string_view/inserters/wchar_t/2.cc: New. * testsuite/experimental/string_view/inserters/wchar_t/3.cc: New. * testsuite/experimental/string_view/literals/types.cc: New. * testsuite/experimental/string_view/literals/values.cc: New. * testsuite/experimental/string_view/modifiers/remove_prefix/char/1.cc: New. * testsuite/experimental/string_view/modifiers/remove_prefix/wchar_t/ 1.cc: New. * testsuite/experimental/string_view/modifiers/remove_suffix/char/1.cc: New. * testsuite/experimental/string_view/modifiers/remove_suffix/wchar_t/ 1.cc: New. * testsuite/experimental/string_view/operations/compare/char/1.cc: New. * testsuite/experimental/string_view/operations/compare/char/13650.cc: New. * testsuite/experimental/string_view/operations/compare/wchar_t/1.cc: New. * testsuite/experimental/string_view/operations/compare/wchar_t/ 13650.cc: New. * testsuite/experimental/string_view/operations/data/char/1.cc: New. * testsuite/experimental/string_view/operations/data/wchar_t/1.cc: New. * testsuite/experimental/string_view/operations/find/char/1.cc: New. * testsuite/experimental/string_view/operations/find/char/2.cc: New. * testsuite/experimental/string_view/operations/find/char/3.cc: New. * testsuite/experimental/string_view/operations/find/char/4.cc: New. * testsuite/experimental/string_view/operations/find/wchar_t/1.cc: New. * testsuite/experimental/string_view/operations/find/wchar_t/2.cc: New. * testsuite/experimental/string_view/operations/find/wchar_t/3.cc: New. * testsuite/experimental/string_view/operations/find/wchar_t/4.cc: New. * testsuite/experimental/string_view/operations/rfind/char/1.cc: New. * testsuite/experimental/string_view/operations/rfind/char/2.cc: New. * testsuite/experimental/string_view/operations/rfind/char/3.cc: New. * testsuite/experimental/string_view/operations/rfind/wchar_t/1.cc: New. * testsuite/experimental/string_view/operations/rfind/wchar_t/2.cc: New. * testsuite/experimental/string_view/operations/rfind/wchar_t/3.cc: New. * testsuite/experimental/string_view/operations/substr/char/1.cc: New. * testsuite/experimental/string_view/operations/substr/wchar_t/1.cc: New. * testsuite/experimental/string_view/operators/char/2.cc: New. * testsuite/experimental/string_view/operators/wchar_t/2.cc: New. * testsuite/experimental/string_view/range_access/char/1.cc: New. * testsuite/experimental/string_view/range_access/wchar_t/1.cc: New. * testsuite/experimental/string_view/requirements/ explicit_instantiation/1.cc: New. * testsuite/experimental/string_view/requirements/ explicit_instantiation/char/1.cc: New. * testsuite/experimental/string_view/requirements/ explicit_instantiation/char16_t/1.cc: New. * testsuite/experimental/string_view/requirements/ explicit_instantiation/char32_t/1.cc: New. * testsuite/experimental/string_view/requirements/ explicit_instantiation/wchar_t/1.cc: New. * testsuite/experimental/string_view/requirements/typedefs.cc: New. * testsuite/experimental/string_view/types/1.cc: New. From-SVN: r204902 |
||
Jonathan Wakely
|
b1705a6388 |
optional: Use __and_<> and __not_<> in conditions.
2013-11-05 Jonathan Wakely <jwakely.gcc@gmail.com> Paolo Carlini <paolo.carlini@oracle.com> * include/experimental/optional: Use __and_<> and __not_<> in conditions. Style fixes. (__constexpr_addressof, swap): Make inline. * testsuite/experimental/optional/cons/copy.cc: Adjust constants for 32-bit targets. * testsuite/experimental/optional/cons/move.cc: Likewise. * testsuite/experimental/optional/cons/value.cc: Likewise. * testsuite/experimental/optional/constexpr/cons/value.cc: Likewise. Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com> From-SVN: r204402 |
||
Michael Brune
|
2b5ab1e438 |
enable_special_members.h: New.
2013-10-31 Michael Brune <lucdanton@free.fr> * include/bits/enable_special_members.h: New. * include/experimental/optional: New. * include/Makefile.am: Handle include/experimental. * include/Makefile.in: Regenerate. * testsuite/libstdc++-dg/conformance.exp: Run tests from testsuite/experimental sub-directory. * testsuite/experimental/optional/assignment/1.cc: New. * testsuite/experimental/optional/assignment/2.cc: New. * testsuite/experimental/optional/assignment/3.cc: New. * testsuite/experimental/optional/assignment/4.cc: New. * testsuite/experimental/optional/assignment/5.cc: New. * testsuite/experimental/optional/assignment/6.cc: New. * testsuite/experimental/optional/cons/copy.cc: New. * testsuite/experimental/optional/cons/default.cc: New. * testsuite/experimental/optional/cons/move.cc: New. * testsuite/experimental/optional/cons/value.cc: New. * testsuite/experimental/optional/constexpr/cons/default.cc: New. * testsuite/experimental/optional/constexpr/cons/value.cc: New. * testsuite/experimental/optional/constexpr/in_place.cc: New. * testsuite/experimental/optional/constexpr/make_optional.cc: New. * testsuite/experimental/optional/constexpr/nullopt.cc: New. * testsuite/experimental/optional/constexpr/observers/1.cc: New. * testsuite/experimental/optional/constexpr/observers/2.cc: New. * testsuite/experimental/optional/constexpr/observers/3.cc: New. * testsuite/experimental/optional/constexpr/observers/4.cc: New. * testsuite/experimental/optional/constexpr/observers/5.cc: New. * testsuite/experimental/optional/constexpr/relops/1.cc: New. * testsuite/experimental/optional/constexpr/relops/2.cc: New. * testsuite/experimental/optional/constexpr/relops/3.cc: New. * testsuite/experimental/optional/constexpr/relops/4.cc: New. * testsuite/experimental/optional/constexpr/relops/5.cc: New. * testsuite/experimental/optional/constexpr/relops/6.cc: New. * testsuite/experimental/optional/in_place.cc: New. * testsuite/experimental/optional/make_optional.cc: New. * testsuite/experimental/optional/nullopt.cc: New. * testsuite/experimental/optional/observers/1.cc: New. * testsuite/experimental/optional/observers/2.cc: New. * testsuite/experimental/optional/observers/3.cc: New. * testsuite/experimental/optional/observers/4.cc: New. * testsuite/experimental/optional/observers/5.cc: New. * testsuite/experimental/optional/relops/1.cc: New. * testsuite/experimental/optional/relops/2.cc: New. * testsuite/experimental/optional/relops/3.cc: New. * testsuite/experimental/optional/relops/4.cc: New. * testsuite/experimental/optional/relops/5.cc: New. * testsuite/experimental/optional/relops/6.cc: New. * testsuite/experimental/optional/requirements.cc: New. * testsuite/experimental/optional/swap/1.cc: New. From-SVN: r204299 |