锘??xml version="1.0" encoding="utf-8" standalone="yes"?> 妯℃澘鐨勪笘鐣屾瘮杈冪瘡錛屽厛浠嶰OP鐨勮瑙掔湅鐪嬶細 鍜嬬湅涓涓嬩技涔庝篃娌″灝戜笢瑗匡紝鏄簱鐨勪綔鑰呮嬁浜嗕竴鍫嗗熀紜姒傚康鍦ㄩ偅鐜╂枃瀛楁父鎴忓ソ鍍忋?/p> 鎶借薄璧鋒潵搴旇鏄繖鏍峰嚑涓笢涓滐細IIOStream IIStream IOStream IInSeek IOutSeek IIOSeek IStreamInFilter IStreamOutFilter IStreamIOFilter 鐪嬭搗鏉ョ‘瀹炴湁鐐規伓蹇冿紝鐞嗚鍜岀幇瀹炴槸鏈夊樊璺濈殑錛岋紝錛屽攭錛岋紝錛?/p> 鎺ヤ笅鏉ヨ浠栨洿鎭跺績涓鐐癸紝搴斾負榪樼己灝戜竴涓狥ilterable鐨勬蹇?/p> 寰堝揩鍑烘潵涓寮犺湗铔涚綉錛岋紝錛岃繖涔熶笉鑳借榪囧害璁捐鍚э紝涔熻鏈変簺緋葷粺闇瑕佽繖涔堢粏鍖栧憿錛?/p> 涓嶈繃鐪嬪埌榪欏紶铚樿洓緗戜箣鍚庢灉鏂喅瀹氭垜鍚庨潰緇冩墜緇濆涓嶈榪欎箞璐熻矗錛屽彲浠ヨ冭檻v紲炵殑鍋氭硶錛屾帴鍙i兘鏄叏鐨勶紝浣嗘槸鍔熻兘涓嶄竴瀹氾紝浣跨敤鐨勪笉鏀寔鐨勬帴鍙e氨寮勪釜鎻愮ず鍟ョ殑銆傘傘?/p> 榪欐牱鐪嬩笂鍘繪槸閭d箞鍥炰簨浜嗭紝錛岋紝seek琚彁鐐煎埌stream閲岃竟錛宖ilter娣誨姞sink鐨勬蹇碉紝鎴栬呯洿鎺ョ敤delegate鏇村悎閫傦紵 1.鏂囨。涓嶅瀹屽杽 2.鐔熸倝紼嬪害涓嶅錛屽涔犳洸綰挎瘮杈冮櫋宄紝鐩存帴鐢ㄦ湁鍙兘澶辨帶 3.瀹炵幇澶繃澶嶆潅錛岃繕闇瑕乵pl搴撶殑鏀寔 4.濡傛灉浣跨敤錛宨ostreams灝嗘垚涓哄簳灞傦紝鏁翠釜欏圭洰閮戒細瀵瑰叾渚濊禆錛屾湁椋庨櫓 5.璇寸櫧浜嗭紝榪樻槸鑳藉姏涓嶅錛屼笉榪囦簡瑙d簡涓浜沬ostreams褰掔撼鍑烘潵鐨刢oncepts涔熸槸闈炲父鏈夋敹璐с?/p> 6.緗戜笂鐨勪竴鍙ュ綊綰籌細
]]>
//////////////////////////////////////////////
The most important Device concepts are these:
The most important Filter concepts are these:
Boost.Iostreams prvides several concepts corresponding to optional behavior that a Filter or Device might implement:
locale of a stream or stream buffer is set using basic_ios::imbue or basic_streambuf::pubimbue. a read request never produces fewer characters than requested unless end-of-stream has been reached or unless a read request to a downsteam Source produces fewer characters than requested, and
a write request never consumes fewer characters than requested unless a write request to a downsteam Sink consumes fewer characters than requested.
*濡傛灉鐔熸倝stl搴旇灝變簡瑙raits鎶鏈紙搴旇鏄妧宸э級
<boost/iostreams/traits.hpp>榪欓噷鏄痓oost::iostream搴撶殑traits
榪樻湁涓ā鐗堝厓鍑芥暟mod_of