Quellcode durchsuchen

Add <lol/algo/suffix_array> module that exposes the Step library.

pull/1/head
Sam Hocevar vor 4 Jahren
Ursprung
Commit
f893fe0188
3 geänderte Dateien mit 29 neuen und 0 gelöschten Zeilen
  1. +3
    -0
      .gitmodules
  2. +1
    -0
      include/lol/3rdparty/step
  3. +25
    -0
      include/lol/algo/suffix_array

+ 3
- 0
.gitmodules Datei anzeigen

@@ -6,6 +6,9 @@
path = include/lol/3rdparty/mingw-std-threads
url = ../../lolengine/ext-mingw-std-threads.git
branch = master
[submodule "step"]
path = include/lol/3rdparty/step
url = ../../lolengine/ext-step
[submodule "portable-file-dialogs"]
path = include/lol/3rdparty/portable-file-dialogs
url = ../../samhocevar/portable-file-dialogs.git


+ 1
- 0
include/lol/3rdparty/step

@@ -0,0 +1 @@
Subproject commit a02b5aca235fa66588db5d0d064d2d13dddefb75

+ 25
- 0
include/lol/algo/suffix_array Datei anzeigen

@@ -0,0 +1,25 @@
//
// Lol Engine
//
// Copyright © 2010—2020 Sam Hocevar <sam@hocevar.net>
//
// Lol Engine is free software. It comes without any warranty, to
// the extent permitted by applicable law. You can redistribute it
// and/or modify it under the terms of the Do What the Fuck You Want
// to Public License, Version 2, as published by the WTFPL Task Force.
// See http://www.wtfpl.net/ for more details.
//

#pragma once

#include "../private/push_macros.h"
#include "../3rdparty/step/suffix_array.hpp"
#include "../private/pop_macros.h"

namespace lol
{

template<class T = char, class Size = size_t, class Compare = std::less<>>
using suffix_array = step::suffix_array<T, Size, Compare>;

};

Laden…
Abbrechen
Speichern