aboutsummaryrefslogtreecommitdiff
path: root/src/2015/day7/aoc.cpp
blob: b09e317ff0befa30d3be018a08f56fb502f6ff5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "aoc.h"

namespace aoc2015 {

result day7(line_view file, const char* wire) {
  cals cs;
  per_line(file, [&cs](line_view lv) {
    cs.parse(lv);
    return true;
  });
  return cs.compute(wire);
}

} // namespace aoc2015