Skip to content

Commit 4db7a6e

Browse files
committed
Add member types for basic_file
1 parent febe7c3 commit 4db7a6e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/tmp/file

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ extern "C++" int get_native_handle(std::FILE* file) noexcept;
6464
template<class charT, class traits = std::char_traits<charT>>
6565
class basic_file : public std::basic_iostream<charT, traits> {
6666
public:
67+
using char_type = charT;
68+
using int_type = typename traits::int_type;
69+
using pos_type = typename traits::pos_type;
70+
using off_type = typename traits::off_type;
71+
using traits_type = traits;
72+
6773
/// Implementation-defined handle type to the file
6874
using native_handle_type =
6975
std::invoke_result_t<decltype(detail::get_native_handle), std::FILE*>;

0 commit comments

Comments
 (0)