TAILIEUCHUNG - ansi C reference phần 10

Một . trong một chức năng kê khai xử lý ngoại lệ tương tự . trong một tuyên bố tham số chức năng, quy định cụ thể phù hợp cho bất kỳ ngoại lệ. Nếu có, . xử lý được xử lý cuối cùng để cố gắng ngăn chặn của nó. Một định nghĩa không tên-không gian tên, cư xử như thể nó được thay thế bằng | Input iterators DRAFT 28 April 1995 Iterators library 24- 3 2 Note For input iterators a b does not imply a b. Equality does not guarantee the substi- tution property or referential transparency. Algorithms on input iterators should never attempt to pass through the same iterator twice. They should be single pass algorithms. Value type T is not required to be an lvalue type. These algorithms can be used with istreams as the source of the input data through the istream_iterator class. end note Output iterators 1 A class or a built-in type X satisfies the requirements of an output iterator if the following expressions are valid as shown in Table 58 Table 58 Output iterator requirements expression return type operational semantics assertion note pre post-condition X a a t is equivalent to X a t. note a destructor is assumed. X u a X u a a t result is not used r Xn r r. r convertible to const X X tmp r r return tmp r t __result is not used 2 Note The only valid use of an operator is on the left side of the assignment statement. Assignment through the same value of the iterator happens only once. Algorithms on output iterators should never attempt to pass through the same iterator twice. They should be single pass algorithms. Equality and inequality might not be defined. Algorithms that take output iterators can be used with ostreams as the destination for placing data through the ostream_iterator class as well as with insert iterators and insert pointers. end note Forward iterators 1 A class or a built-in type X satisfies the requirements of a forward iterator if the following expressions are valid as shown in Table 59 24- 4 Iterators library DRAFT 28 April 1995 Forward iterators Table 59 Forward iterator requirements expression return type operational semantics assertion note pre post-condition Xu note u might have a singular value. note a destructor is assumed. X note X might be singular. X a a

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.