summaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/common/base.h
blob: e59d0a77fb82f8dc32fe7073296143902112cf17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

namespace search {

// This constant defines the illegal/undefined value for unsigned 32-bit
// integer ids. Use this instead of the function below to get less
// overhead with not-so-smart compilers.

const uint32_t NoId32 = static_cast<uint32_t>(-1);

}