Skip to content

Commit d9c3f39

Browse files
committed
Import sorting and marked an argument const
1 parent 880fe54 commit d9c3f39

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/containers/treemap.d

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ struct TreeMap(K, V, Allocator = Mallocator, alias less = "a < b",
7575
*
7676
* Throws: RangeError if the key does not exist.
7777
*/
78-
auto opIndex(this This)(K key) inout
78+
auto opIndex(this This)(const K key) inout
7979
{
8080
alias CET = ContainerElementType!(This, V);
8181
auto tme = TreeMapElement(key);
@@ -257,12 +257,12 @@ version(emsi_containers_unittest) @system unittest
257257

258258
version(emsi_containers_unittest) unittest
259259
{
260-
import stdx.allocator.building_blocks.free_list : FreeList;
260+
import std.algorithm.iteration : walkLength;
261+
import std.stdio : stdout;
261262
import stdx.allocator.building_blocks.allocator_list : AllocatorList;
263+
import stdx.allocator.building_blocks.free_list : FreeList;
262264
import stdx.allocator.building_blocks.region : Region;
263265
import stdx.allocator.building_blocks.stats_collector : StatsCollector;
264-
import std.stdio : stdout;
265-
import std.algorithm.iteration : walkLength;
266266

267267
StatsCollector!(FreeList!(AllocatorList!(a => Region!(Mallocator)(1024 * 1024)),
268268
64)) allocator;
@@ -278,8 +278,8 @@ version(emsi_containers_unittest) unittest
278278

279279
version(emsi_containers_unittest) unittest
280280
{
281-
import std.algorithm.iteration : each;
282281
import std.algorithm.comparison : equal;
282+
import std.algorithm.iteration : each;
283283
import std.range : repeat, take;
284284

285285
TreeMap!(int, int) tm;

0 commit comments

Comments
 (0)