namespace lasd { template void AuxFoldExists(const Data& dat, const void* val, void* exists){ if(dat == *((Data*)val)){ *((bool*)exists) = true; } } template bool FoldableContainer::Exists(const Data& dat) const noexcept{ bool exists = false; FoldPreOrder(&AuxFoldExists, &dat, &exists); return exists; } }