Changeset 2987160 in mainline
- Timestamp:
- 2018-07-05T21:41:19Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 092a436
- Parents:
- af8bda0
- git-author:
- Dzejrou <dzejrou@…> (2018-01-05 23:00:17)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:19)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/impl/istream.hpp
raf8bda0 r2987160 905 905 906 906 template<class Char, class Traits> 907 class basic_iostream; 907 class basic_iostream 908 : public basic_istream<Char, Traits>, 909 public basic_ostream<Char, Traits> 910 { 911 public: 912 using char_type = Char; 913 using traits_type = Traits; 914 using int_type = typename traits_type::int_type; 915 using pos_type = typename traits_type::pos_type; 916 using off_type = typename traits_type::off_type; 917 918 explicit basic_iostream(basic_streambuf<char_type, traits_type>* sb) 919 : basic_istream<char_type, traits_type>(sb), 920 basic_ostream<char_type, traits_type>(sb) 921 { /* DUMMY BODY */ } 922 923 virtual ~basic_iostream() 924 { /* DUMMY BODY */ } 925 926 protected: 927 basic_iostream(const basic_iostream&) = delete; 928 basic_iostream& operator=(const basic_iostream&) = delete; 929 930 basic_iostream(basic_iostream&& other) 931 : basic_istream<char_type, traits_type>(move(other)) 932 { /* DUMMY BODY */ } 933 934 basic_iostream& operator=(basic_iostream&& other) 935 { 936 swap(other); 937 } 938 939 void swap(basic_iostream& other) 940 { 941 basic_istream<char_type, traits_type>::swap(other); 942 } 943 }; 908 944 909 945 using iostream = basic_iostream<char>;
Note:
See TracChangeset
for help on using the changeset viewer.