$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] design patterns in boost?
From: Zachary Turner (divisortheory_at_[hidden])
Date: 2009-07-20 10:28:43
On Mon, Jul 20, 2009 at 4:33 AM, Edouard A.<edouard_at_[hidden]> wrote:
> On Mon, 20 Jul 2009 17:25:11 +0800, <jon_zhou_at_[hidden]> wrote:
>
>> any design patterns implementation in boostï¼
>>
>> such as ,singleton,object factory,etc?
>
> If you are refering to the gang of 4 book, you have the flyweight design
> pattern.
>
> http://www.boost.org/doc/libs/1_39_0/libs/flyweight/doc/index.html
And visitor (see boost::variant). Obviously iterator is implemented
by boost, and boost also has state machines implementing the State
pattern.