• Home
Name Date Size #Lines LOC

..--

.clang-formatD03-May-2024239

Android.bpD03-May-2024887 3634

README.mdD03-May-20241.4 KiB4230

cast_test.cppD03-May-20248.9 KiB201123

concat_test.cppD03-May-20241.8 KiB5628

enum_test.cppD03-May-20245.4 KiB175122

fake_guard_test.cppD03-May-20241.2 KiB5024

flags_test.cppD03-May-20246.8 KiB215166

future_test.cppD03-May-20243.2 KiB10671

small_map_test.cppD03-May-202411.2 KiB413285

small_vector_test.cppD03-May-202417.4 KiB663459

static_vector_test.cppD03-May-202412.7 KiB480328

string_test.cppD03-May-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