- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
void checkDuplicateType(TWindowCasterToWindowAdditionalInformation GetWindowAdditionalInformation)
{
const TCasterRepository::const_iterator NotFound=_casterRepository.end();
const TCasterRepository::const_iterator Begin=_casterRepository.begin();
struct _
{
static bool TestDuplicateTypeAtThisItem(const TCasterRepository::value_type& Item, TWindowCasterToWindowAdditionalInformation GetWindowAdditionalInformationFunction)
{
return Item.second==GetWindowAdditionalInformationFunction;
}
};
ASSERT(std::find_if(Begin, NotFound, BOOST_BIND(_::TestDuplicateTypeAtThisItem, _1, GetWindowAdditionalInformationFunction))==NotFound);
}