[ios.seekdir]

# 31 Input/output library [[input.output]](./#input.output)

## 31.5 Iostreams base classes [[iostreams.base]](iostreams.base#ios.seekdir)

### 31.5.2 Class ios_base [[ios.base]](ios.base#ios.seekdir)

#### 31.5.2.2 Types [[ios.types]](ios.types#ios.seekdir)

#### 31.5.2.2.5 Type ios_base​::​seekdir [ios.seekdir]

[ð](#lib:seekdir,ios_base)

`using seekdir = T4;
`

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L1107)

The typeseekdir is an enumerated type ([[enumerated.types]](enumerated.types "16.3.3.3.2 Enumerated types"))
that contains the elements indicated in Table [140](#tab:ios.seekdir "Table 140: seekdir effects")[.](#1.sentence-1)

Table [140](#tab:ios.seekdir) — seekdir effects [[tab:ios.seekdir]](./tab:ios.seekdir)  

| [ð](#tab:ios.seekdir-row-1)<br>**Element** | **Meaning** |
| --- | --- |
| [ð](#tab:ios.seekdir-row-2)<br>beg | request a seek (for subsequent input or output) relative to the beginning of the stream |
| [ð](#tab:ios.seekdir-row-3)<br>cur | request a seek relative to the current position within the sequence |
| [ð](#tab:ios.seekdir-row-4)<br>end | request a seek relative to the current end of the sequence |
