Squid Web Cache master
Loading...
Searching...
No Matches
syntheticoperators.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2025 The Squid Software Foundation and contributors
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"
10#include "mem_node.h"
11#include "stmem.h"
12
13#include <iostream>
14
16{
17public:
20 HasExplicit(HasExplicit const &);
22 static int const &Instances();
23 static int const &Assignments();
24 static void Assignments(int const &);
25private:
26 static void AddInstance();
27 static void RemoveInstance();
28 static void Assignment();
29 static int Instances_;
30 static int Assignments_;
31};
32
35
40
45
50
53{
54 Assignment();
55 return *this;
56}
57
58void
63
64void
69
70void
75
76int const &
81
82int const &
87
88void
89HasExplicit::Assignments(int const &newValue)
90{
91 Assignments_ = newValue;
92}
93
94static void
119
121{
122public:
124};
125
126static void
152
153int
154main(int, char *[])
155{
158 return EXIT_SUCCESS;
159}
160
#define assert(EX)
Definition assert.h:17
static int const & Instances()
static void Assignment()
HasExplicit & operator=(HasExplicit const &)
static void AddInstance()
static int Assignments_
static int Instances_
static int const & Assignments()
static void RemoveInstance()
int main()
static void CheckSyntheticWorks()
static void CheckHasExplicitWorks()