HexEdit/HexEditDoc.cpp
int CHexEditDoc::GetBookmarkAt(FILE_ADDRESS pos)
{
	std::vector<FILE_ADDRESS>::const_iterator pp = std::find(bm_posn_.begin(), bm_posn_.end(), pos);
	if (pp != bm_posn_.end())
		return bm_index_[pp-bm_posn_.begin()];
	else
		return -1;
}
// Returns bookmark index or -1 if no bookmark there

Returns bookmark index or -1 if no bookmark there
Returns bookmark index or - 1 if no bookmark there
int CHexEditDoc::GetBookmarkAt(FILE_ADDRESS pos)
{
	std::vector<FILE_ADDRESS>::const_iterator pp = std::find(bm_posn_.begin(), bm_posn_.end(), pos);
	if (pp != bm_posn_.end())
		return bm_index_[pp-bm_posn_.begin()];
	else
		return -1;
}
int CHexEditDoc :: GetBookmarkAt ( FILE_ADDRESS pos ) { std :: vector < FILE_ADDRESS > :: const_iterator pp = std :: find ( bm_posn_ . begin ( ) , bm_posn_ . end ( ) , pos ) ; if ( pp != bm_posn_ . end ( ) ) return bm_index_ [ pp - bm_posn_ . begin ( ) ] ; else return -1 ; }
Returns bookmark index or -1 if no bookmark there
Returns bookmark index or - 1 if no bookmark there