Run clang-format
This commit is contained in:
@@ -1,27 +1,29 @@
|
||||
#include <mutex>
|
||||
class Y
|
||||
{
|
||||
class Y {
|
||||
private:
|
||||
int some_detail;
|
||||
mutable std::mutex m;
|
||||
int some_detail;
|
||||
mutable std::mutex m;
|
||||
|
||||
int get_detail() const
|
||||
{
|
||||
std::lock_guard<std::mutex> lock_a(m);
|
||||
return some_detail;
|
||||
}
|
||||
|
||||
int get_detail() const
|
||||
{
|
||||
std::lock_guard<std::mutex> lock_a(m);
|
||||
return some_detail;
|
||||
}
|
||||
public:
|
||||
Y(int sd):some_detail(sd){}
|
||||
Y(int sd) : some_detail(sd) {}
|
||||
|
||||
friend bool operator==(Y const& lhs, Y const& rhs)
|
||||
{
|
||||
if(&lhs==&rhs)
|
||||
return true;
|
||||
int const lhs_value=lhs.get_detail();
|
||||
int const rhs_value=rhs.get_detail();
|
||||
return lhs_value==rhs_value;
|
||||
}
|
||||
friend bool operator==(Y const& lhs, Y const& rhs)
|
||||
{
|
||||
if (&lhs == &rhs)
|
||||
return true;
|
||||
int const lhs_value = lhs.get_detail();
|
||||
int const rhs_value = rhs.get_detail();
|
||||
return lhs_value == rhs_value;
|
||||
}
|
||||
};
|
||||
|
||||
int main()
|
||||
{}
|
||||
int
|
||||
main()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user