Example #1
0
static int
tm_comp(const void *s1, const void *s2)
{
  const s_rec *sr1 = (const s_rec *) s1;
  const s_rec *sr2 = (const s_rec *) s2;
  double r = difftime(sr1->memo.tm, sr2->memo.tm);
  return CompareF(r, sr1, sr2) * sort_order;
}
Example #2
0
	flat_map(
		Iterator first, Iterator last,
		CompareF const &comp = CompareF(),
		Alloc const &a = Alloc()
	) : impl(comp, a)
	{
		insert(first, last);
	}
Example #3
0
	flat_map(
		std::initializer_list<value_type> init,
		CompareF const &comp = CompareF(),
		Alloc const &a = Alloc()
	) : flat_map(init.begin(), init.end(), comp, a)
	{}
Example #4
0
	flat_map(
		Iterator first, Iterator last,
		Alloc const &a = Alloc()
	) : flat_map(first, last, CompareF(), a)
	{}
Example #5
0
	explicit flat_map(Alloc const &a)
	: flat_map(CompareF(), a)
	{}
Example #6
0
	flat_map()
	: flat_map(CompareF())
	{}