/** @file list4109.cpp */
/** Listing 41-9. Using replace_if and intrange to Replace All Integers in [10, 20] with 0 */
#include <algorithm>

#include "data.hpp"
#include "intrange.hpp"

int main()
{
  intvector data;
  read_data(data);
  write_data(data);
  std::replace_if(data.begin(), data.end(), intrange(10, 20), 0);
  write_data(data);
}
