Commit graph

446 commits

Author SHA1 Message Date
Jack Applegame
cafed8e1c3 allows std.traits.getUDAs to filter attributes by template type.
See unittests.
2015-11-05 11:18:16 +03:00
Andrei Alexandrescu
168d96dfd7 Merge pull request #3395 from nordlow/either-and-every
Add new algorithm: either()
2015-10-29 16:57:59 -04:00
Per Nordlöw
c46a463628 Add algorithm either() and trait allSatisfy() 2015-10-29 21:11:05 +01:00
Martin Nowak
0e95f6723a Merge remote-tracking branch 'upstream/stable' into merge_stable 2015-10-27 15:55:59 +01:00
Martin Nowak
0a9f9ccc3e fixup for string-like overloads
- undocument overloads for aliased/static strings
- make std.traits helpers phobos internal
- rename isStringLike to isConvertibleToString for clearer documentation
- rename peelStringLike to convertToString
- fix a few staticMap!(selectString) uses in std.path
2015-10-26 19:50:08 +01:00
Martin Nowak
f5843a3cfe add isStringLike to std.traits
- select only structs/static array that are implicitly convertible to a string

- also add internal peelStringLike helper
2015-10-25 18:59:08 +01:00
Walter Bright
cf22992cbb Merge pull request #3768 from CyberShadow/pull-20151024-051829
HTML fixes
2015-10-24 15:05:00 -07:00
Vladimir Panteleev
86cf380007 HTML fixes 2015-10-24 06:19:23 +00:00
Jack Stouffer
58c48c8b3d added unittest docs to isNarrowString 2015-10-23 10:35:26 -04:00
Andrei Alexandrescu
8b974d2b49 Undo inadvertent changes to std/math.d and std/traits.d, delete std/typed_allocator.d 2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
0477b4e458 Johannes Phau's review 2015-10-02 07:33:42 -04:00
Petar Kirov
a3cd1da909 Remove redundant assert in documented unittest 2015-09-10 16:51:35 +03:00
Dmitry Olshansky
a336f3c7bc Merge pull request #3497 from aG0aep6G/hasMember
std.traits.hasMember: just forward to __traits(hasMember, ...)
2015-08-27 09:29:55 +03:00
anonymous
b593591978 Ddoc: fix two stray parentheses 2015-08-13 22:18:31 +02:00
MetaLang
387b7f7319 Remove workaround for unittests failing with compiler change
I had to introduce a workaround in https://github.com/D-Programming-Language/phobos/pull/3547 because the unittests would not pass without the matching compiler change https://github.com/D-Programming-Language/dmd/pull/4868. Now that the compiler fix is merged, the workaround can be removed.
2015-08-12 10:31:29 -03:00
MetaLang
597b0e0cad Fix unittests that ignore the return attribute 2015-08-12 00:16:28 -03:00
Martin Nowak
5ca7ddad60 Merge remote-tracking branch 'upstream/stable' into merge_stable
Conflicts:
	posix.mak

Manually edited:
	std/datetime.d (rename toNormalizedPath -> asNormalizedPath)
2015-07-24 01:28:58 +02:00
Walter Bright
31c9630702 add std.traits.isAutodecodableString() to fix Issue 14765 2015-07-23 07:22:25 +02:00
anonymous
3d02450030 Ddoc: add missing parenthesis 2015-07-16 21:35:31 +02:00
anonymous
dd2161705a std.traits.hasMember: just forward to __traits(hasMember, ...)
This way opDispatch'ed members are recognized.

Fixes issue 14605 - RefAppender fails isOutputRange.
2015-07-16 21:29:46 +02:00
MetaLang
69d62066d2 Add CopyConstness 2015-07-15 23:14:33 -03:00
Hackerpilot
7457e9eddf Use 'Identity' intstead of local 'I' alias 2015-06-22 14:59:57 -07:00
Hackerpilot
5e7e98efcb Fix typo 2015-06-19 15:26:00 -07:00
Hackerpilot
bbdf899a7d Document the non-recursive nature of getSymbolsByUDA 2015-06-19 14:24:05 -07:00
Hackerpilot
b3c2d0474d Add getSymbolsByUDA template 2015-06-18 14:10:42 -07:00
Robert Schadek
a9758d00f5 Merge pull request #3363 from economicmodeling/add-getUDA
Add getUDA template
2015-06-18 11:17:43 +02:00
Hackerpilot
0b1e29cfa1 Rename ModifyTypePreservingSTC to ModifyTypePreservingTQ and make it public. 2015-06-03 16:10:35 -07:00
Hackerpilot
9cb43fb7b6 Rename getUDA to getUDAs and allow it to return multiple matching UDAs 2015-06-03 13:40:58 -07:00
Hackerpilot
59f259f197 Add getUDA template 2015-06-02 17:08:20 -07:00
Hackerpilot
58550441b7 Add hasUDA template 2015-06-02 12:28:02 -07:00
Robert burner Schadek
0da6f7f291 traits: alias syntax update
fix
2015-05-28 20:55:54 +02:00
Steven Schveighoffer
6f3fca2df6 TemplateOf example wasn't being included in ddoc because the second overload was not ditto'd 2015-05-26 11:45:03 -06:00
Martin
bb4fb43624 std.traits: Make unittest independent of std.stdio.printf linkage. 2015-05-14 20:28:09 +02:00
Walter Bright
40ca5eabc6 Rename *Tuple symbols 2015-05-06 20:57:24 -07:00
Walter Bright
d9a9826e55 Revert "Introducing std.meta package" 2015-05-06 14:36:45 -07:00
Dicebot
7970fcc748 Don't use fqn for any/all
In most cases it resolves unambiguosly
2015-05-05 22:22:11 +03:00
Dicebot
a76d90c927 Phobos should only mention tuple as std.typecons.Tuple 2015-05-05 22:22:11 +03:00
Dicebot
0f74b4c29f Stop mentioning TypeTuple in std.traits
Aliases old names as undocumented (but not deprecated) symbols.
2015-05-05 22:22:11 +03:00
Dicebot
1c9ae027ef Rename old std.typetuple symbols inside Phobos
staticIndexOf -> indexOf
allSatisfy -> all
anySatisfy -> any
staticMap -> Map
2015-05-05 22:22:11 +03:00
Dicebot
82f54a38d3 TypeTuple -> MetaList inside Phobos 2015-05-05 22:22:11 +03:00
Dicebot
73f773838d import std.typetuple -> import std.meta 2015-05-05 22:22:10 +03:00
Dicebot
3ca20b5ca4 Move MostDerived and DerivedToFront to std.traits
Those two helpers are about type introspection and use
MetaList only coincidently. Such utilities are better fit
to std.traits
2015-05-05 22:22:10 +03:00
JakobOvrum
c775917a34 Merge pull request #3212 from nomad-software/issue_14079
Issue 14079 - Variable templates' documentation not generated.
2015-05-01 08:44:57 +09:00
Ryan
6589e19009 Tweak isAggregateType and isBuiltinType docs.
Align asserts for consistency with other phobos docs.
2015-04-27 21:18:38 -04:00
Ryan
4dfcaba7f6 Usage examples: isAggregateType, isBuiltinType.
Add DDOC usage examples in std.traits for isAggregateType and isBuiltinType.
These currently have no documented examples, and the DDOC summary is not
terribly clear on exactly what they mean.
2015-04-25 17:41:39 -04:00
Gary Willoughby
3e7ad6b341 Fix issue 14079 2015-04-21 20:03:58 +01:00
Kai Nacke
2c4317c8bd Cent-ify std.traits.
Adds traits support for cent/ucent if supported.
2015-04-09 08:21:06 +02:00
Walter Bright
4f8125fb6d fix Issue 14253 - [REG2.067b3] std.traits.ParameterStorageClassTuple gives compiler errors when encountering 'return' functions 2015-03-13 18:22:07 -07:00
k-hara
41f243a6c2 Supplemental fix for issue 2789 2015-02-09 00:01:04 +09:00
Andrei Alexandrescu
71e3ecf680 Merge pull request #2934 from WalterBright/dip25
DIP25: make phobos work with it
2015-01-30 13:59:37 -08:00