Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Erase method #1

Open
alvarofpp opened this issue Nov 17, 2017 · 0 comments
Open

Erase method #1

alvarofpp opened this issue Nov 17, 2017 · 0 comments
Labels

Comments

@alvarofpp
Copy link
Owner

Implement method of erase and test.

Here are some drafts:

// cdf.h

template< class InputIterator >
bool erase ( InputIterator _first, InputIterator _last );

// DataFrame.cpp

template< class InputIterator >
bool cdf::DataFrame::erase ( InputIterator _first, InputIterator _last )
{
	bool result = true;
	while (_first != _last)
	{
		if (!drop(*_first))
			result = false;
		++_first;
	}

	return result;
}
@alvarofpp alvarofpp assigned alvarofpp and unassigned alvarofpp Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant