1 #ifndef RHEO_MSG_LOCAL_OPTIMIZE_H
2 #define RHEO_MSG_LOCAL_OPTIMIZE_H
24 # include "rheolef/msg_util.h"
76 InputIterator1 to_loc_idx,
77 InputIterator1 last_to_loc_idx,
78 InputIterator2 from_loc_idy)
80 typedef typename std::iterator_traits<InputIterator1>::value_type Size;
81 if (to_loc_idx == last_to_loc_idx) {
84 Size to_start = *to_loc_idx++;
85 Size from_start = *from_loc_idy++;
87 while (to_loc_idx != last_to_loc_idx && has_opt) {
90 if ((*to_loc_idx++) != to_start ||
91 (*from_loc_idy++) != from_start) {
This file is part of Rheolef.
bool msg_local_optimize(InputIterator1 to_loc_idx, InputIterator1 last_to_loc_idx, InputIterator2 from_loc_idy)