---
title: "C++ STL学习"
author: "zhava"
date: "2013-04-02T09:10:50Z"
tags: ["C++", "STL", "for-each"]
categories: ["编程语言"]
slug: "c-stl"
draft: false
lastmod: "2013-04-02T09:10:50Z"
id: 1840509
url: "https://zhava.iteye.com/blog/1840509"
---

和iterator有关： for\_each(first\_it,last\_it,fun)，用来做循环 binary\_function,ptr\_fun,用来适配全局函数 mem\_fun用来适配类的成员函数 bind1st,bind2nd用来绑定参数 ostream\_iterator copy(first\_it,last\_it,std::ostream\_iterator (cout,"\\n"));