// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "leveldb/comparator.h" #include <algorithm> #include <cstdint> #include <string> #include <type_traits> #include "leveldb/slice.h" #include "util/logging.h" #include "util/no_destructor.h" namespace leveldb { Comparator::~Comparator() = default; namespace { class BytewiseComparatorImpl : public Comparator { … }; } // namespace const Comparator* BytewiseComparator() { … } } // namespace leveldb