• Home
Name Date Size #Lines LOC

..--

.clang-formatD06-Sep-2024239

Android.bpD06-Sep-20241.2 KiB4745

OWNERSD06-Sep-202466 11

README.mdD06-Sep-20241.4 KiB4230

TEST_MAPPINGD06-Sep-2024128 1312

algorithm_test.cppD06-Sep-20242.6 KiB7843

cast_test.cppD06-Sep-20248.9 KiB201123

concat_test.cppD06-Sep-20242.2 KiB7341

enum_test.cppD06-Sep-20247.1 KiB213149

expected_test.cppD06-Sep-20244.1 KiB14698

fake_guard_test.cppD06-Sep-20241.2 KiB5024

flags_test.cppD06-Sep-20246.9 KiB219169

function_test.cppD06-Sep-202411.6 KiB380248

future_test.cppD06-Sep-20244.1 KiB144101

hash_test.cppD06-Sep-20241.3 KiB4116

match_test.cppD06-Sep-20241.5 KiB4922

mixins_test.cppD06-Sep-20246.2 KiB186117

non_null_test.cppD06-Sep-20244.8 KiB160109

optional_test.cppD06-Sep-20247.5 KiB254173

shared_mutex_test.cppD06-Sep-20241.5 KiB6135

small_map_test.cppD06-Sep-202412.2 KiB446313

small_vector_test.cppD06-Sep-202417.4 KiB663459

static_vector_test.cppD06-Sep-202412.7 KiB480328

string_test.cppD06-Sep-20244.8 KiB188137

README.md

1# FTL
2
3FTL is a template library shared by SurfaceFlinger and InputFlinger, inspired by
4and supplementing the C++ Standard Library. The intent is to fill gaps for areas
5not (yet) covered—like cache-efficient data structures and lock-free concurrency
6primitives—and implement proposals that are missing or experimental in Android's
7libc++ branch. The design takes some liberties with standard compliance, notably
8assuming that exceptions are disabled.
9
10## Tests
11
12    atest ftl_test
13
14## Style
15
16- Based on [Google C++ Style](https://google.github.io/styleguide/cppguide.html).
17- Informed by [C++ Core Guidelines](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines).
18
19Naming conventions are as follows:
20
21- `PascalCase`
22    - Types and aliases, except standard interfaces.
23    - Template parameters, including non-type ones.
24- `snake_case`
25    - Variables, and data members with trailing underscore.
26    - Functions, free and member alike.
27    - Type traits, with standard `_t` and `_v` suffixes.
28- `kCamelCase`
29    - Enumerators and `constexpr` constants with static storage duration.
30- `MACRO_CASE`
31    - Macros, with `FTL_` prefix unless `#undef`ed.
32
33Template parameter packs are named with the following convention:
34
35    typename T, typename... Ts
36    typename Arg, typename... Args
37
38    std::size_t I, std::size_t... Is
39    std::size_t Size, std::size_t... Sizes
40
41The `details` namespace contains implementation details.
42