Skip to content

Commit 1187ae6

Browse files
committed
.
1 parent a0911c2 commit 1187ae6

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Advanced-Cpp-Programming.vcxproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
<ClInclude Include="resource.h" />
132132
</ItemGroup>
133133
<ItemGroup>
134-
<ClCompile Include="Standard Template Library\Stacks-and-queues.cpp" />
134+
<ClCompile Include="Standard Template Library\Sorting-vectors-deque-and-friend.cpp" />
135135
</ItemGroup>
136136
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
137137
<ImportGroup Label="ExtensionTargets">

Advanced-Cpp-Programming.vcxproj.filters

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</ClInclude>
2121
</ItemGroup>
2222
<ItemGroup>
23-
<ClCompile Include="Standard Template Library\Stacks-and-queues.cpp">
23+
<ClCompile Include="Standard Template Library\Sorting-vectors-deque-and-friend.cpp">
2424
<Filter>Source Files</Filter>
2525
</ClCompile>
2626
</ItemGroup>

Standard Template Library/Sorting-vectors-deque-and-friend.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ class Test {
1616
void print() {
1717
cout << id << " : " << name << endl;
1818
}
19+
20+
bool operator<(const Test& other) const {
21+
return id < other.id;
22+
}
23+
1924
};
2025

2126

0 commit comments

Comments
 (0)