blob: 58396c64730bee6098176c9eedb070e986405a99 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_SYNC_SYNCABLE_SYNCABLE_INL_H_
#define COMPONENTS_SYNC_SYNCABLE_SYNCABLE_INL_H_
#include "components/sync/syncable/entry_kernel.h"
namespace syncer {
namespace syncable {
template <typename FieldType, FieldType field_index>
class LessField {
public:
inline bool operator()(const syncable::EntryKernel* a,
const syncable::EntryKernel* b) const {
return a->ref(field_index) < b->ref(field_index);
}
};
} // namespace syncable
} // namespace syncer
#endif // COMPONENTS_SYNC_SYNCABLE_SYNCABLE_INL_H_