]> git.ipfire.org Git - thirdparty/squid.git/blame - src/helper/ReservationId.cc
Source Format Enforcement (#1234)
[thirdparty/squid.git] / src / helper / ReservationId.cc
CommitLineData
a70e75b7 1/*
b8ae064d 2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
a70e75b7 3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9#include "squid.h"
a56fcf0b
CT
10#include "helper/ReservationId.h"
11
12Helper::ReservationId
13Helper::ReservationId::Next()
14{
15 static uint64_t Ids = 0;
16 Helper::ReservationId reservation;
17 reservation.id = ++Ids;
18 return reservation;
19}
20
21std::ostream &
22Helper::ReservationId::print(std::ostream &os) const
23{
24 return os << "hlpRes" << id;
25}
8baed639 26