Boost logo

Boost :

Subject: Re: [boost] Boost.Algorithm design question
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2011-10-07 04:30:26

Den 06-10-2011 18:27, Phil Endecott skrev:
> Thorsten Ottosen wrote:
>> Even better, don't use vector<const char*>. What o you need that for?
> Here's a real motivating example where I want to use vector<const
> char*>. I have a large file containing null-terminated strings which I
> memory map. After opening the file, I construct some sort of index of
> those strings in a sorted vector. Then I search for things using
> std::equal_range, std::lower_bound, or similar.

That's a good example, I grant you.


Boost list run by bdawes at, gregod at, cpdaniel at, john at